function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Undelete Trigger

Hi Friends,


   I am new to salesforce ,can u any body tell me the way to implement undelete trigger for account



ThanX in Advance




the undelete trigger works for recovered records, please find information about this here:


Also, I would look at the rest of the documentation about triggers; in general an undelete trigger works like an after insert trigger:


When writing a trigger, you have to ensure that it processes records in bulk and you don't assume that only one record is being updated/created/undeleted.

For best practices around bulk processing please refer to this article:


For examples of triggers, you can find recipes in the cookbook like: