ForceChallenges
ProblemsDailyNotes
Sign in
Problem list
Sign in to submit

Require Approval Before Large Deal Closure

HardApex Triggeron Opportunity 50 ptsCreated Oct 13, 2026

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.

OpportunityCustom FieldTrigger.oldMapValidation
CodeApex
Loading editor…
Large deal needs approval

Seed data

Opportunity× 0 rows
fields generated from the schema

DML under test

insertOpportunity

Expected