# How do milestone warning actions help support teams avoid Service Level Agreement breaches?

**Topic:** Service Cloud · **Difficulty:** Medium · **Tags:** Service Cloud, Milestones, SLA Breaches

Read it on the site: https://www.forcechallenges.com/interview-questions/how-do-milestone-warning-actions-help-support-teams-avoid-service-level-agreement-breaches

## Answer

**Basics:** In an entitlement process each milestone has Success, Warning and Violation actions. A warning action uses a time trigger, for example 30 minutes before the target, and notifies the case owner and a supervisor.

**How it works:**
1. Setup > Entitlement Processes > open the process > Milestone > Edit.
2. Under Warning Actions add a Time Trigger (for example 30 minutes before) and its actions.
3. Create the actions first: an Email Alert to the owner and manager, a Task, or a Field Update (for example Case.Escalated = true).
4. When the case milestone approaches the trigger time, Salesforce runs the actions once.
5. If the milestone is completed first, remaining time triggers are cancelled.

**Advanced / deep dive:** You can stack several warning triggers (80 percent and 95 percent of the target) and a Violation action that escalates. A field update in a warning action can in turn trigger a record-triggered Flow or Apex for richer behavior such as posting to Slack. Visual warning: the Milestone Tracker component on the case page shows a countdown and turns red when violated. Reporting on CaseMilestone.IsViolated, TargetDate and completion supports SLA dashboards. Note that milestone actions use workflow-style action types even though Workflow Rules are retired; verify the current action types in the release notes.

**Code / config example:** Milestone action setup (declarative):
1. Email Alert: "SLA warning - 30 min", template listing case number and owner, recipients: Case Owner, Owner's Manager.
2. Milestone > Warning Actions > Time Trigger: 30 minutes (before target).
3. Add Email Alert plus Field Update "Flag At Risk = true".
4. Violation Actions: Field Update "Escalated = true", Task for the supervisor.

**Hidden gotchas & must-remember points:**
- Warnings only fire if the entitlement process is active and the case has the entitlement.
- Time trigger relative values depend on business hours when configured.
- Actions fire once per milestone instance; a restarted recurring milestone fires again.
- Emails need a configured sender and active deliverability.
- Warning does not complete or pause the milestone.
- Changing actions affects only new milestone instances in new versions.

**Best practice:** Use two warning stages and route the second one to a supervisor, and complete milestones automatically to avoid false alarms.

---
Source: ForceChallenges · last updated 2026-11-02
