Google News
logo
Salesforce - Interview Questions
What are the differences between trigger and workflow in Salesforce?
Workflow Trigger
Workflow is an automated process that fires an action depending on evaluation criteria and rule criteria A trigger is a piece of program code that will be executed before or after a record has been inserted or updated
We cannot carry out DML operations on workflow  We can use 20 DML operations in a single trigger
We are able to obtain a workflow across the object We are able to access the trigger across the object and associated with that objects
We cannot query from database in workflow We can use 20 SOQL(Salesforce Object Query Language) from the database in a single trigger
Advertisement