• Jerrod Knapp 25
  • NEWBIE
  • 10 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 3
    Replies
I've created a simple trigger on contact to check a box after delete.  When I activate the trigger I can no longer delete a contact.  Error: "There's a problem saving this record. You might not have permission to edit it, or it might have been deleted or archived. Contact your administrator for help."
Trigger:
trigger trgDeletedContact on Contact (after delete) {
    for (Contact c: trigger.old){
        c.IsDeleted__c = TRUE;
    }
}

Thanks in advance!
We are using REST api to update records in an external system from Salesforce.  We can update records but how do we delete records that are deleted in salesforce?  Thanks in advance for any help.
I've created a simple trigger on contact to check a box after delete.  When I activate the trigger I can no longer delete a contact.  Error: "There's a problem saving this record. You might not have permission to edit it, or it might have been deleted or archived. Contact your administrator for help."
Trigger:
trigger trgDeletedContact on Contact (after delete) {
    for (Contact c: trigger.old){
        c.IsDeleted__c = TRUE;
    }
}

Thanks in advance!
We are using REST api to update records in an external system from Salesforce.  We can update records but how do we delete records that are deleted in salesforce?  Thanks in advance for any help.