Community
Showing results for 
Search instead for 
Do you mean 
Reply

Prevent Certain Company from Deleting

Copper Super Contributor
Posts: 71
Country: Canada

Prevent Certain Company from Deleting

Hello everyone,

 

I am trying to write code so that if a user tries to delete a company called Master, a message box pops up saying that the company cannot be deleted and the deletion process is cancelled. I am wondering if there is an event I can call to cancel the deletion. I know when you delete a company the companychanging event is called, but this runs whenever a company is changed as well as deleted so it would not work. Any ideas?