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
Dileep KatariDileep Katari 

How to insert a record using after delete?

Account and AccountHistory are two custom objects. When account record is deleted, one record of accounthistory should be created.
Jakub MužíkJakub Mužík
Create an after delete trigger, and just insert an instance of AccountHistory object with whichever values copied from Account object.