User Story
Create a trigger which debugs the number of updated or deleted Accounts.
Expected Outcome
Number of records deleted: 12
Code
When Deleted:
trigger AccountTrigger on Account (before delete) {
System.debug('Number of records deleted : '+ trigger.old.size());
}
When Updated:
trigger AccountTrigger on Account (before update) {
System.debug('Number of records updated : '+ trigger.old.size());
}
Video
Video does not exists.