Prevent Opportunity Close Date from Moving Backward
MediumApex Triggeron Opportunity 25 ptsCreated Oct 13, 2026
When an Opportunity is updated, do not allow its Close Date to be changed to an earlier date than it had before. Keeping the same date or moving it later is allowed.
Constraints
Write bulk-safe trigger logic. Do not run SOQL or DML inside a loop.