# Block Case Reopening after Resolution

**Type:** Apex trigger · **Difficulty:** Medium · **Object:** Case · **Topics:** Case, Trigger.oldMap, Before Update

Practice this problem interactively (write and run your Apex trigger against realistic data): https://www.forcechallenges.com/problems/block-case-reopening-after-resolution

## Problem

Do not allow a Case that was Closed to be changed back to New. Other status changes are allowed. Use old and new values to detect the reopening attempt.

## Constraints

Keep the trigger bulk-safe. Do not run SOQL or DML inside a loop.

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