+ 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?