# Require Reason When Opportunity Amount Drops

**Type:** Apex trigger · **Difficulty:** Hard · **Object:** Opportunity · **Topics:** Opportunity, Trigger.oldMap, Custom Field, Validation

Practice this problem interactively (write and run your Apex trigger against realistic data): https://www.forcechallenges.com/problems/require-reason-opportunity-amount-drop

## Problem

When an existing Opportunity's Amount is reduced, require a short explanation in a custom Amount Change Reason field. Increases and unchanged amounts do not require a reason. Add the custom field to the challenge schema.

## Constraints

Write bulk-safe trigger logic. Do not run SOQL or DML inside a loop.

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