Question: Explain the difference between a trigger and a batch class in Salesforce.Answer: A trigger is an Apex code that runs in response to a database event, while a batch class is used for processing large sets of records asynchronously. Triggers are designed for real-time events, while batch classes are used for bulk processing. |
Is it helpful?
Yes
No
Most helpful rated by users: