+ Start a Discussion

Using Custom setting as a flag to avoid recussion in trigger



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?