# In which trigger events are Trigger.old and Trigger.oldMap available?

**Topic:** Apex Trigger · **Difficulty:** Easy · **Asked at:** Accenture, Deloitte, PwC · **Tags:** apex-trigger, trigger, context-variables

Read it on the site: https://www.forcechallenges.com/interview-questions/in-which-trigger-events-are-trigger-old-and-trigger-oldmap-available

## Answer

`Trigger.old` and `Trigger.oldMap` are available in **before update, after update, before delete, and after delete** triggers.

They are not available in insert or undelete triggers because there is no prior version of the record. Both are read-only; attempting to modify them throws an error.

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