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:
- Setup > Entitlement Processes > open the process > Milestone > Edit.
- Under Warning Actions add a Time Trigger (for example 30 minutes before) and its actions.
- Create the actions first: an Email Alert to the owner and manager, a Task, or a Field Update (for example Case.Escalated = true).
- When the case milestone approaches the trigger time, Salesforce runs the actions once.
- 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):
- Email Alert: "SLA warning - 30 min", template listing case number and owner, recipients: Case Owner, Owner's Manager.
- Milestone > Warning Actions > Time Trigger: 30 minutes (before target).
- Add Email Alert plus Field Update "Flag At Risk = true".
- Violation Actions: Field Update "Escalated = true", Task for the supervisor.