How to invoke batch apex job (or) how to execute the batch apex job programatically?
Answer / Rajnath Kumar
"To invoke a Batch Apex Job programmatically, you can use the Database.executeBatch() method. Here's an example:
1. Create an instance of your Batch Apex class.
2. Pass an Iterable<SObject> list to the start method in the constructor of the Batch Apex class instance.
3. Call Database.executeBatch() on the AsyncApexJob object, passing your Batch Apex instance as a parameter."
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the lead process?
What are custom reports? : salesforce admin
Can we avoid deletion of records through validation rules?
What is the difference between public and global class in apex? : salesforce crm
Difference between isblank and isnull?
How can you create visualforce page in salesforce? : salesforce visualforce
What is Access at the Role Level?
What is a Batch Apex?
Can you tell me about export and export all with reference to data loader?
What are the different Annotations in Salesforce and tell me with examples?
What are the time-dependent workflow – considerations ?
What are custom report types?