in Salesforce by
Q:
What is the difference between trigger and workflow?

1 Answer

0 votes
by
Workflow:

Workflow is an automated process that fired an action based on Evaluation criteria and rule criteria.

We can access a workflow across the object.

We cannot perform DML operation on workflow

We cannot query from database

Trigger:

Trigger is a piece of code that executes before or after a record is inserted or updated.

We can access the trigger across the object and related to that objects

We can use 20 DML operations in one trigger.

We can use 20 SOQL from database in one trigger.
Click here to read more about Salesforce
Click here to read more about Insurance

Related questions

0 votes
asked Sep 26, 2019 in Salesforce by Robin
0 votes
0 votes
asked Sep 26, 2019 in Salesforce by Robin
0 votes
asked Sep 26, 2019 in Salesforce by Robin
0 votes
asked Sep 24, 2019 in Salesforce by Robin
0 votes
asked Feb 3, 2020 in Salesforce by SakshiSharma
...