ForceChallenges
ProblemsDailyNotes
Sign in
Problem list
Sign in to submit

Require Case Contact for Escalations

HardApex Triggeron Case 50 ptsCreated Oct 13, 2026

When a Case is changed to Escalated status using a custom Is_Escalated__c checkbox, require ContactId. Add the checkbox field to the schema. Non-escalated cases do not need a contact for this rule.

Constraints

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

CaseCustom FieldValidation
CodeApex
Loading editor…
Escalated case needs contact

Seed data

Case× 0 rows
fields generated from the schema

DML under test

insertCase

Expected