You need to sign in to do that
Don't have an account?

Disable Multiple Apex triggers
Hi all
Is there a simple way to add in a few lines of code to existing Apex triggers to prevent them running rather than having to go into all 45 of them when Im performing various admin tasks.
The triggers when executed send various emails to internal and external customers and amend or create records that I would usually disable before starting my tasks.
Can code be added to reference a value in a table or selected drop down that then allows or disallows the remainder of the code to be ran
thanks in advance
James
Is there a simple way to add in a few lines of code to existing Apex triggers to prevent them running rather than having to go into all 45 of them when Im performing various admin tasks.
The triggers when executed send various emails to internal and external customers and amend or create records that I would usually disable before starting my tasks.
Can code be added to reference a value in a table or selected drop down that then allows or disallows the remainder of the code to be ran
thanks in advance
James
currentuser = UserInfo.getUserId();
if (currentuser != 'YourIDHere')
{
Your trigger actions
}
else
{
}