+ Start a Discussion
ColealarsColealars 

How can I prevent a trigger from firing that checks Opportunity Contract Role on creation of new Opp

I want to prevent my trigger that checks for a specific Opp contact role from firing on the creation of a new Opp because the Opp has to be created before a person is added to contact role.

 

How can this be done?

MVJMVJ
Change it to be an Update only trigger.
JimRaeJimRae

I would agree with MVJ.

If you need it to be an insert and update, block in the specific checking code in an if statement:

 

 

if(Trigger.isUpdate){ //your checking code }