# Record Account Phone Changes in Description

**Type:** Apex trigger · **Difficulty:** Medium · **Object:** Account · **Topics:** Apex Trigger, Before Update, Trigger.oldMap, Bulkification, Field Assignment

Practice this problem interactively (write and run your Apex trigger against realistic data): https://www.forcechallenges.com/problems/record-account-phone-changes-in-description

## Problem

A sales operations team needs a lightweight audit note when an Account phone number changes. Write a bulk-safe Account update trigger that detects an actual Phone change and replaces Description with a note containing both the previous and current phone values. Leave Description unchanged when Phone is unchanged. Example: changing Phone from 555-0100 to 555-0200 should set Description to `Phone changed from 555-0100 to 555-0200`.

## Constraints

Handle multiple Accounts in one transaction. Compare old and new values. Use before update so no additional DML is needed to change Description.

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