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
Atla MasthanaiahAtla Masthanaiah 

plsHelpme

I have one object and 100 users one trigger will be fire. 50 users trigger will be fire and 50 users trigger will not be fire how to achive it ( Through Programing )
SijuSiju
Create a check box field in User Object (Eg: Fire Trigger) and in the Trigger check that field (UserInfo.getUserId()) in the USER object for the current logged in USER and based on that fire the trigger.
SijuSiju
Boolean fireTigger = [Select Fire_rigger__c From User Where Id = :UserInfo.getUserId()][0].Fire_rigger__c;
Sean McMickle 10Sean McMickle 10
You could also do it based on profile, if that is an option.