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
Tarun Kumar 1902Tarun Kumar 1902 

If any a development team sets a trigger on an object to change a field, and simultaneously another team working on same object runs another trigger to update the field it creates an issue. How to restrict a team from updating object in such situation?

PratikPratik (Salesforce Developers) 
Hi Tarun,

If the user's of that specific team should not change the field then you can add Profile criteria in your trigger (profiles of users for that specific team).
You can add a conditional statement to check the profile and then execute the code in trigger.

If it's independant developement then you can ask your dev teams to work on seperate dev boxes. (Dev pro or Dev sandbox)

Thanks,
Pratik
sushant sussushant sus
u can use for update feature .for reference
https://www.salesforce.com/us/developer/docs/apexcode/Content/langCon_apex_locking_statements.htm

Thanks
sushant