The trigger will be called for each and every user, there is no way to stop it from triggering for particular users but however you can contol the execution of the code that is written inside the trigger. You can add a check at the starting of the trigger so that it will execute only for the particular set of users. Sample code is given below:
trigger testTrigger on Contact(before insert, before update) {
if(LoggedInUser.Name == 'xyz'){
//Execute this code
}
}
In this way the above trigger code will be executed only for the User whose name is xyz. Please let me know if you need any further information on this.
The trigger will be called for each and every user, there is no way to stop it from triggering for particular users but however you can contol the execution of the code that is written inside the trigger. You can add a check at the starting of the trigger so that it will execute only for the particular set of users. Sample code is given below:
In this way the above trigger code will be executed only for the User whose name is xyz. Please let me know if you need any further information on this.
Thanks,
Abhishek Bansal.