Soubhik
12/19/2019 - 9:32 AM

Delete notification

The following trigger will prevent the users from deleting the Accounts. This is because System Administrator has all the permissions, we cannot change the permissions.

trigger AccountDelete on Account(before delete) {
    for (Account Acc: trigger.old) {
        acc.adderror('You Cannot Delete the Account Record');
    }
}