You need to sign in to do that
Don't have an account?
Scott Shoning
Need help with an Apex class/trigger to selectively prevent account deletion
We have our Account triggers set up as one single apex class, which makes it challenging to find code suggestions as I am an Apex newb.
My requirements are as follows:
I need to restrict the deletion of account records to System Admins only, when the value of a certain checkbox field is set to true on the account.
My research tells me I need a trigger, but since we don't have individual triggers I need to do this in our AccountTriggerHandler apex class.
Any advice is appreciated!
My requirements are as follows:
I need to restrict the deletion of account records to System Admins only, when the value of a certain checkbox field is set to true on the account.
My research tells me I need a trigger, but since we don't have individual triggers I need to do this in our AccountTriggerHandler apex class.
Any advice is appreciated!
-----------
Thanks,
Srinivas
- Please mark as solution if your problem is resolved.
All Answers
-----------
Thanks,
Srinivas
- Please mark as solution if your problem is resolved.