Skip to main content
1 resposta
  1. 21 de fev. de 2020, 12:26
    Hi prema,

    You can stop deleting a record using before delete trigger,But in before delete trigger the record is read only so you cannot update a record while in before delete trigger.Instead you can create a new record with the same data from this trigger

    Please refer below link which might help you further

    https://salesforce.stackexchange.com/questions/240708/how-prevent-deletion-in-event-delete-trigger-and-update-a-field-instead

    https://developer.salesforce.com/forums/?id=906F000000092IBIAY

    Hope this helps you

    Let me know if this helps you. Kindly mark it as solved so that it may help others in future.

    Thanks and Regards