# Escalate Cases with Urgent Subjects

**Type:** Apex trigger · **Difficulty:** Easy · **Object:** Case · **Topics:** Case, Before Insert, String Handling

Practice this problem interactively (write and run your Apex trigger against realistic data): https://www.forcechallenges.com/problems/escalate-cases-urgent-subjects

## Problem

When a Case is created, set Priority to High if its Subject contains the word 'urgent', ignoring upper/lower case. Do not change the priority for other subjects.

## Constraints

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

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