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
apexcodeapexcode 

triggers

what is the difference between before insert and after insert triggers? can we retrive IDs in before insert trigger?

SFFSFF

One fires before the record is inserted, the other one fires after the record is inserted. The ID does not exist in the before-insert trigger.