# Why are records in Trigger.new read-only in after triggers?

**Topic:** Apex Trigger · **Difficulty:** Medium · **Asked at:** Wipro, Capgemini, KPMG · **Tags:** apex-trigger, trigger, dml

Read it on the site: https://www.forcechallenges.com/interview-questions/why-are-records-in-trigger-new-read-only-in-after-triggers

## Answer

In after triggers the records have already been written to the database (not yet committed), so the save operation is complete. Modifying `Trigger.new` fields would have no effect on what was saved, and Salesforce throws `Record is read-only`.

To change the same record in an after trigger, query a fresh copy (or create a new SObject instance with the Id) and perform DML on it. This re-fires triggers, so guard against recursion. Better, move same-record logic to a before trigger.

---
Source: ForceChallenges · last updated 2026-10-21
