ForceChallenges
ProblemsDailyNotes
Sign in
Problem list
Sign in to submit

Require Lead Company

EasyApex Triggeron Lead 10 ptsCreated Oct 13, 2026

Before a Lead is saved, require a company name. If Company is blank, stop the save and tell the user what to enter.

Constraints

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

LeadValidation
CodeApex
Loading editor…
Lead company is required

Seed data

Lead× 0 rows
fields generated from the schema

DML under test

insertLead

Expected