I have 2 Afterupdate triggers.
There is Update DML in the first trigger which changes the status from In approvals to Initials Obtained.
There is update DML in the second trigger which updates the Apex sharing when status is Initials Obtained.
The requirement is Whenever status updates to Initials obtained in the first trigger, the second Afterupdate trigger should run and update the Apex sharing for Initials obtained status.
The issue iam facing is with the Order of execution. There are 2 Afterupdate triggers with 2 DMLs inside.
Though the Status is showing as Initials obtained in the Form, the Apex sharing is not showing as that of Initials obtained. Users are facing access issues.
Can you please help me ? Should there be only one Afterupdate trigger with 2 DMLS inside it so that once the first DML is done, system will enter into 2nd DML ?
Thank you for the reply. In my requirement i have to update the status first to Initials obtained in a custom object. Then update the Sharing for that object. Only after status change i need to update sharing.