Development questions

Why do we use after undelete triggers, and why doesn't before undelete exist?

DevelopmentMediumAccenturePwCBirlasoft

After undelete triggers run when records are restored from the Recycle Bin. Use them to rebuild related data, e.g. recalculate roll-ups, restore related child links, or notify admins.

There is no before undelete because restore is not an edit of the record: the record already exists with its stored values, so there is nothing to modify or validate beforehand. Records in Trigger.new for undelete are read-only, and Ids are available.

apex-triggertriggerundelete