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

Who's in the room: Records manager, Purview admin, owners of the source systems (such as HR and contracts), site owners for the pilot

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

  • 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).

    Who: Records managerProduces: Event-driven categories, each with an event and a source system

  • 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: Records manager with the Purview adminProduces: An asset ID scheme per event type

  • 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.

    Other options: Records managers, by hand · Decided by: Records manager

Rollout approach: By workload · Pilot size: One record category, one site. Events depend on clean asset IDs and on whoever triggers them. Starting with one category, one event type and one location shows whether that works before you add more.

Pilot to production

4 phases
  1. Design 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.

    Who: Records manager with the Purview adminProduces: Event types and event-based labels, ready to publish

    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.

  2. 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.

    Who: Purview admin with the site ownerProduces: Pilot items labeled and carrying an asset ID

    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.

  3. 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.

    Who: Records managerProduces: A tested event and a runbook for creating events

    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.

  4. 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.

    Who: Records manager with the source system ownersProduces: Events created reliably for every event-driven category

    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.

Alongside every phase:

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.

What keeps it in place:

An event's date synchronizes to every labeled, indexed item matching its asset ID or keywords within up to seven days. Items labeled after the event aren't covered, so the runbook repeats the event for them.

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.

Measures, where you see them, and the direction that means success
MeasureWhere you see itGood direction
Events created on time for triggers in the source systemsPurview events list compared with the source system Up
Labeled items without an asset IDContent search Down
Event-based items reaching disposition when expectedPurview disposition Steady

Take it with you

plan, decisions, gate checks

Plan outline: phases and when to move on

  1. Design event types and labels (1 week). Move on when: Each label matches a category in the records schedule and names its event type.
  2. 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.
  3. Trigger a test event (1 to 2 weeks). Move on when: The event reached only the items it should, with the expected start date.
  4. Automate and hand over. Move on when: Operations owns each event type and its trigger

Decisions to record, with the recommended answer

DecisionRecommended defaultOur 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.

Contributor

Compare notes or suggest an improvement

Your message goes straight to Sev Derghazarian.

What would you like to do?

Subject:

The send button is enabled once the spam check below completes.

Changelog

Changelog (1 version)
Published versions of this playbook
VersionDateByChange
1Sev DerghazarianFirst draft.