Prevent Lead Company Name Changes after Qualification
HardApex Triggeron Lead 50 ptsCreated Oct 13, 2026
Once a Lead's Status is Qualified, do not allow its Company field to change. Other fields can still be updated. Use the old record to check its previous status.
Constraints
Keep the trigger bulk-safe. Do not run SOQL or DML inside loops.
LeadTrigger.oldMapBefore Update
CodeApex
Loading editor…
Qualified lead company is locked
Seed data
Lead× 1 rows
Status: QualifiedCompany: Original CoLastName: Qualified