MediumConceptTriggers and Automation
What is the difference between before and after triggers?
What a good answer covers
Before triggers can change the records being saved without DML. After triggers see the saved record Id and are used to affect other records.