Records Management · Deploy
Start retention when an event happens
Event-based retention labels tied to records by an asset ID, with events triggered by hand, then from the source system.
- Duration
- 4 to 6 weeks
- Effort
- About 6 to 10 person-days
- Complexity
- Medium
- Beyond E5
- Nothing beyond Microsoft 365 E5
On this page
Overview
Many records-schedule rules run from an event: "keep for 10 years after the employee leaves" or "5 years after the contract expires". A label counting from creation can't express that. Event-based retention can: the label waits until an event is created for the record, then the period starts from the event date.
Technically, you create an event type for each trigger and labels whose period starts on it, then publish or auto-apply them. SharePoint and OneDrive items are tied to an event by an asset ID; Exchange items by keywords or a query. Creating an event, in the portal, with PowerShell or through Microsoft Graph, sets the start date on every matching labeled item.
You'll end up with: Event-based labels for the categories that need them, an asset ID on every governed item, and events created reliably from the source systems.
If you skip it: Without it, event-driven rules run from the wrong date, and records are kept too long or disposed of too early.
Before you start
The path to this playbook
- Decide where retention policies apply
- Decide what to keep, and for how long
- Test retention labels and get ready
- Roll out retention without losing work
- Start retention when an event happens (you are here)
- Roll out retention without losing work: Retention policies and labels, piloted on a few workloads before the whole tenant.
- Know which record categories run from an event
How to do it
From the records schedule, list each category whose retention starts on an event, and the system that knows when it happens (HR for departures, contracts for expiry).
- Agree the asset ID
How to do it
Pick the value that links an item to its event, such as an employee or contract number, and where it comes from. SharePoint and OneDrive store it in the Asset ID property or a custom property; Exchange matches on keywords.
- Who creates events?
Decision: Who creates events?
Recommended default: By hand for the pilot, then automated for high-volume events
Events can be created in the Purview portal, with PowerShell, or through Microsoft Graph. Manual events suit low volumes; departures and expiries usually happen too often to rely on memory.
Pilot to production
4 phasesDesign event types and labels1 week
Create one event type per trigger, then the labels that start on it, with the period and end action from the records schedule.
Move on when Each label matches a category in the records schedule and names its event type.
How to do it
Choose the event type carefully. Once a label is saved with an event type, it can't be changed.
Chain labels where the schedule changes over time. At the end of a period, a label can be replaced with another label. There's no limit to the chain, but a regulatory record can't be relabeled.
Label and tag the pilot content1 to 2 weeks
Publish or auto-apply the labels to the pilot site and add the asset ID to each governed item. For Exchange, confirm the keywords.
Move on when Content search finds the pilot items by label and by asset ID.
How to do it
Asset IDs are entered as a property and value, such as ComplianceAssetID or a custom property, and content search can find items by either. Populate them from metadata or a flow rather than by hand.
Watch out for (1)
If you: Declare items as records and never create their event
What tends to happen: A record whose event never happens is kept indefinitely, and nobody notices.
A better approach:Give every event type an owner and a source system before you label anything.
Trigger a test event1 to 2 weeks
Create an event for one asset ID and confirm the start date reaches the matching items. Allow up to seven days.
Move on when The event reached only the items it should, with the expected start date.
How to do it
Events can't be cancelled once triggered, and deleting one doesn't undo what it started, so test with content you'll keep under that schedule.
Watch out for (2)
If you: Create an event without an asset ID or keywords
What tends to happen: It triggers every item labeled for that event type, across the tenant.
A better approach:Always scope an event to an asset ID or keywords.
If you: Label more content after the event is created
What tends to happen: The new items never get the event date.
A better approach:Repeat the event with the same details for content labeled later.
Automate and hand over
Automate events for high-volume triggers from the source system, add the remaining categories one at a time, and record each event type, its owner and its trigger in the runbook.
Move on when Operations owns each event type and its trigger
How to do it
Microsoft Graph's records management APIs and the compliance PowerShell cmdlets can create event types and events. The older REST method no longer works.
Compare events created each month with departures, expiries and retirements in the source systems. Each gap is a missed event, a missing asset ID, or content labeled after its event.
How you'll know it's working
3 measures
Capture a baseline before you start, or you won't be able to show the change.
| Measure | Where you see it | Good direction |
|---|---|---|
| Events created on time for triggers in the source systems | Purview events list compared with the source system | Up |
| Labeled items without an asset ID | Content search | Down |
| Event-based items reaching disposition when expected | Purview disposition | Steady |
Take it with you
plan, decisions, gate checks
Plan outline: phases and when to move on
- Design event types and labels (1 week). Move on when: Each label matches a category in the records schedule and names its event type.
- Label and tag the pilot content (1 to 2 weeks). Move on when: Content search finds the pilot items by label and by asset ID.
- Trigger a test event (1 to 2 weeks). Move on when: The event reached only the items it should, with the expected start date.
- Automate and hand over. Move on when: Operations owns each event type and its trigger
Decisions to record, with the recommended answer
| Decision | Recommended default | Our choice |
|---|---|---|
| Who creates events? | By hand for the pilot, then automated for high-volume events |
Gate checks: questions to answer before each phase ends
Before leaving Design event types and labels
- Does every event-driven category have a label and an event type?
Before leaving Label and tag the pilot content
- Do all pilot items have an asset ID?
Before leaving Trigger a test event
- Did the start date reach every matching item and nothing else?
Before leaving Automate and hand over
- Does every event type have an owner and a trigger?
Microsoft Learn
5 links
From the community
3 posts
Independent posts that informed this playbook, approved by the editor. They are not Microsoft guidance.
- Plan and create event-based retention labels · David Drever
Planning and creating event-based retention labels, step by step.
- Create an event type · David Drever
How event types let one event start retention for several related labels.
- Daisy chaining retention labels · David Drever
Replacing a label at the end of its retention period to build multi-stage schedules.
Contributor

Microsoft 365 architecture and governance · Protiviti
Compare notes or suggest an improvement
Changelog
Changelog (1 version)
| Version | Date | By | Change |
|---|---|---|---|
| 1 | Sev Derghazarian | First draft. |