# Require Approval Before Large Deal Closure

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

Practice this problem interactively (write and run your Apex trigger against realistic data): https://www.forcechallenges.com/problems/require-approval-before-large-deal-closure

## Problem

If an Opportunity Amount is 1,000,000 or more and Stage is changed to Closed Won, require a custom Large_Deal_Approved__c checkbox to be true. Add the checkbox field to the challenge schema.

## Constraints

Write bulk-safe trigger logic and do not run SOQL or DML inside loops.

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