Can we call a batch apex program in apex trigger ?



Can we call a batch apex program in apex trigger ?..

Answer / Sunanda Biswas

No, you cannot directly call a Batch Apex class from an Apex trigger. However, you can schedule the execution of a Batch Apex job using either the `Database.executeBatch()` method or by setting up a scheduled Apex job.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Salesforce Interview Questions

For which data type we can enable external id?

1 Answers  


Can we create master detail relationship on existing records? : salesforce admin

1 Answers  


Explain 'lookup relationship' in salesforce ?

1 Answers  


What is the Object Relationship Overview?

1 Answers  


How Does Salesforce CRM?

1 Answers  


Difference between auto-response rules and workflow rules?

1 Answers  


Write a trigger to insert a contact and user when the account is created?

1 Answers  


What is difference insert () and database .insert ()?

1 Answers  


What is parallel approval routing?

1 Answers  


How it is different from soql?

1 Answers  


What are custom report types? : salesforce admin

1 Answers  


What is trigger.new?

1 Answers  


Categories