+ Start a Discussion
Atla MasthanaiahAtla Masthanaiah 


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 )
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.
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.