You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to avoid before update trigger on contact getting executed when its account getting deleted

in Sales 1 comment

Summary:

How to avoid before update trigger on contact getting executed when its secondary accounts are getting deleted 

Content (required):

We have a before update trigger on Contact object which will be triggered when there an update to the contact.

However we want to avoid this trigger being executed while deleting secondary Account of a Contact, as it is throwing error we kept inside the trigger when certain conditions aren't met. 

And we are not able to delete the secondary Accounts of the Contact. 

E.g; Account XYZ is primary Account for Contact A. Contact A is added to contact list for Account ABC. When we try to delete the Account ABC(Secondary Account for Contact A), before update trigger on Contact is getting executed. We want to avoid this trigger execution.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!