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
Bhushan_27Bhushan_27 

Using Custom setting as a flag to avoid recussion in trigger

Hi,

 

I have used a custom setting as a flag to avoid recurssion in a trigger which fires on insert , update and delete operation.

The Trigger updates the custom setting flag upon each operation and resets after the operation has been commited.

 

I have a concern that if by chance two or more user try to modify a record that fires the trigger at same time, will this custom setting flag throw an error?

 

Thanks