• Scott Shoning
  • NEWBIE
  • 10 Points
  • Member since 2015
  • Sr. CRM Administrator
  • DHI Group, Inc.

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
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!
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!