You need to sign in to do that
Don't have an account?
Mikey999
Need help creating a trigger to NOT delete an Opportunity if a field is checked on the OPP
First off, I am very new to development and or SFDC dev, so please excuse my ignorance. I need some help creating a trigger that will NOT allow a user to delete an opportunity if one field Andover_VIP__c (which is a checkbox) is checked. Any help is greatly appreciated. Thanks in advance.. I thought it would be an easy validation rule, but from research the validation rule can't be used for this.
Thanks again.
This trigger should do the work
All Answers
This trigger should do the work
Awesome worked great in Dev, now I have to figure out how to get it into production.. Thanks!!
Moved into production.. Again thanks for your help, I just needed something to get started, I am assuming I will be dangerous now LOL.. (not really since I have to support all of SFDC now).
Hmm I have tried this trigger exactly like you wrote, and a few different ways to write it.. All ways work in Sandbox but when I try to deploy it the validation keeps failing says 0%, at least 1% test coverage is required any idea? Thanks again!