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
Glenn at MvistaGlenn at Mvista 

Locking attachment changes on Approved and Locked Records

I was wondering if anyone had a way to prevent changes to attachments - deleting or adding - when a record is Locked during an Approval Process?


I would think to add before  triggers to attachment. In trigger get the ID of the associated Approval and it's status.


If the status is Locked .. addError to the object and stop the operation with a appropriate message....