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
Rakesh ERakesh E 

unable to execute "after update" trigger when a field is updated in "Approval process" step



we have a requirement where we wrote a "After Upade" trigger on a object. we have an Approval Process defined for this object.

one step in this process is Field when the field is updated in this step , this will fire  the trigger. we are doing some changes for the record in trigger whcih is an update operation. this is giving an error saying the 

"Record is read only, you annot do update operation"


we understood that is due to the "Record Locking" feature of approval process. that is after submission the record is locked from editing. but how can we accomplish our requirement.


any idea/work around will be great helpful


Thanks in advance





If you are trying to change the record being updated, you need to use a Before Update trigger.  After Update is basically used when you want to update another table.