function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ramesh babu 114ramesh babu 114 

if one object has workflow and trigger which executes first

if one object has workflow and trigger which executes first
Suraj TripathiSuraj Tripathi
Hi Ramesh,

The workflow will Execute first.

Below is the Link to the Order of Execution.
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_triggers_order_of_execution.htm (https://)

Hope it Helps you. Please mark this as solved so that it gets removed from the unanswered queue which results in helping others who are encountering a similar issue.

Regards ,
Suraj​

 
 
v varaprasadv varaprasad
Hi Ramesh,
 first trigger will execute then workflow rules will fire.

you can find the execution order below:
1) Fetch the data
2) System validation
3) Execute before triggers
4) System and custom validations
5) Save the data
6) After triggers
7) Assignment rules
8) Auto-response rules
9) workflow rules
10) workflow field update - if record is updated then before update triggers and after update triggers are called
11) escalation rules
12) entitlement rules
13) Rollup summary field
14) criteria based sharing rules
15) commit
16) send email

Please let me know in case of any other assistance.

Thanks
Varaprasad

 
v varaprasadv varaprasad
In workflow field update is there -Then before and after update triggers are called once again.