I have a question regarding the execution order of Trigger, Workflow and Process. I know there are plenty of resource there but none of them match my case.
Right now our project have bunch of trigger logic, workflow and process are being used upon the Case object. According to this post, process will be executed after workflow(#12 and #13) https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_triggers_order_of_execution.htm?search_text=order
I was wondering:
- Since the workflow's update fields will fire another round of UPDATE trigger, if the UPDATE trigger is occurred before or after process?And which values(old or new) should be taken into account when process is executed.
- How can we determine a UPDATE trigger is fired from Salesforce UI, SOAP API, workflow or process? I would like to add some logic inside UPDATE trigger to detect the source of the update request.