global class accountBatch implements Database.Batchable<sobject> {
global Database.QueryLocator start(Database.BatchableContext bc){
String query = 'SELECT Id, Name FROM Account';
return Database.getQueryLocator(query);
}
global void execute(Database.BatchableContext bc, List<account> scope) {
for(Account a : scope) {
a.Name = a.Name + 'Updated';
}
update scope;
}
global void finish(Database.BatchableContext bc) {
}
}
Scheduled Class:
global class accountBatchSchedule implements Schedulable{
global void execute(SchedulableContext sc) {
//invoke the batch class
Database.executeBatch(new accountBatch());
}
}
Execute below code from anonymous window in developer console. This will scheduled the job to run in every hour starting from 12:00 AM.
If showHeader="false" in VF Page, the related list Button Edit/Delete/View won’t work on Service Cloud Console.
When showHeader is set to false, some important JS files needed for the service cloud console to function properly will not be loaded, and hence you may see some issues. It is recommended to leave showHeader as true while using in the service cloud console.
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.AcceptReject