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
larrmill59larrmill59 

Does anyone know how to stop a section of code from executing until another piece runs?

I have a trigger that is supposed to update a field on a record and then submit an approval process. The problem is that the approval process is kicking in first which locks the record, thus preventing my field from being updated.

 

How can I insert a break or wait into the code or some other way to force the order of execution?

GobbledigookGobbledigook

Can you post your code?