Catalogue › Security and Compliance › data-retention
Data retention
- Department
- Security and Compliance
- Stages
- Initiate, Implement, Prepare, Operate
- Modules
- All
- Status
- reviewed
- Copilot Cowork
- Security and Compliance plugin for Copilot Cowork, or this skill on its own: Download SKILL.md
- Claude Code
/plugin install security-compliance@d365forge- Licence
- CC BY 4.0, by Simon Foote, Robert Peledie
A CRM system collects personal data faster than almost any other: tracked emails, case notes, attachments, marketing interactions, call recordings and transcripts. UK GDPR expects the organisation to keep personal data no longer than it needs, yet many projects go live with no deletion at all because retention was left for later. Later arrives as a storage bill, a subject access request that surfaces notes from years ago, or an erasure request nobody can carry out.
The other common failure is deleting in Dataverse and assuming the job is done while copies remain in the lake, in Power BI, in mailboxes and in the ERP. This skill structures retention design and review. It does not set retention periods; those come from the organisation's retention schedule and are confirmed by its DPO or legal adviser.
When to use
- Turning a retention schedule into rules for each table, file type and recording.
- Choosing between deletion, anonymisation and long-term retention for a type of record.
- Setting call recording and transcript retention for Dynamics 365 Contact Center.
- Designing how erasure requests and legal holds work, or reviewing retention before go-live or a migration.
Not this skill: security-compliance:marketing-consent-compliance for the lawful basis and consent records themselves, integration-and-data:migration-strategy for deciding what to migrate, platform-administration:licensing-and-capacity for storage capacity.
Questions to ask first
- Does the organisation have a retention schedule, and who owns it? Periods come from the schedule, never from the project team.
- What starts the clock for each record type (case resolved, contract ended, last interaction)? A period without a trigger cannot be automated.
- What must survive the period: nothing, anonymised statistics or a read-only record? This decides delete, anonymise or retain.
- Where are the copies (lake or Fabric exports, Power BI, ERP, SharePoint document locations, mailboxes, recordings, backups)? Deletion only counts if every copy is covered.
- Are there legal holds or sector obligations that override deletion? Every job needs a way to leave held records alone.
Approach
Turn the schedule into a retention matrix with one row per table, file type or recording type: purpose, trigger, period from the schedule, action (delete, anonymise or retain read-only), mechanism, owner and evidence. Include the data people forget: notes and attachments, email bodies, audit history, marketing interaction data, unified profiles in Customer Insights - Data, and call recordings and transcripts.
- Pick the mechanism for each row. Bulk delete jobs are the long-standing way to remove records matching a query on a recurring schedule. Anonymisation (blanking or replacing personal columns while keeping the record for reporting) usually needs a scheduled cloud flow or plug-in. Dataverse long-term retention can move inactive records into read-only retained storage; check current Microsoft Learn documentation for what it supports, how retained data is queried and how it is eventually deleted.
- Respect relationships. Deleting a parent can cascade to its children or be blocked by a restrict rule. Decide per relationship whether children are deleted, reassigned or anonymised, and test in a sandbox with production-like volumes before any live run.
- Cover recordings and logs. Contact Center recordings and transcripts, audit log retention and marketing interaction data each have their own settings. Check current Microsoft Learn documentation for each and align them with the schedule.
- Follow every copy. Deleting in Dataverse does not touch lake or Fabric exports, Power BI imports, ERP records, tracked emails still in mailboxes or SharePoint documents. Give each copy its own rule and owner.
- Plan for backups and restores. Deleted data persists in backups until they expire, so agree with the DPO how erasures are re-applied if a backup is ever restored.
- Holds and erasure. Provide a flag or query that excludes held records from every job, and a documented route for individual erasure requests that also updates the marketing suppression list.
- Evidence. Log each run (job, date, records affected, failures), alert on failures and review the matrix whenever the schedule changes.
Retention choices can change storage consumption and therefore cost. For capacity and licence questions, confirm with the Microsoft licensing guide or your partner.
A finding is blocking when personal data goes live with no retention owner or rule, when a migration brings in data already past its period without a documented reason, when a deletion would cascade unintentionally, or when an erasure request cannot be carried out end to end. Gaps in evidence logging and tidy-ups are advisory. Blocking findings are not overruled by the department under review; disagreement escalates to the executive sponsor or steering committee. Retention periods and legal holds are for the organisation's DPO or legal adviser to confirm.
Outputs
- Retention matrix per table, file type and recording type, approved by the schedule owner.
- Deletion and anonymisation job specifications, with sandbox test evidence.
- Erasure and legal hold procedures for the support team.
- Retention rules applied before migration, recorded in the
data-migration-mapping, and retention checks in thecutover-and-hypercare-checklist.
Scale notes
SMB
Smaller organisations often have no written schedule. Help them frame the questions for their DPO or adviser instead of inventing periods, then implement the minimum: recurring bulk delete jobs for the obvious record types, a recording retention setting if voice is in scope, and an erasure procedure. Do not skip mailbox and export copies just because there are few of them.
Enterprise
Expect a records manager, schedules that differ by country or legal entity, and legal holds raised by a central function. Long-term retention, lake exports and recordings each need a named owner, the matrix sits under change control, and the DPO receives regular evidence that jobs ran. Test deletion performance at full volume and schedule jobs outside business hours.
Hand-offs
Running the jobs after go-live belongs to support-operations:support-model, with failure alerts through platform-administration:monitoring. Migration applies the rules via integration-and-data:migration-strategy, downstream copies are handled with data-and-ai:fabric-link, and recording settings with customer-service:digital-and-voice-channels. Changes to an approved matrix pass through design-authority:change-impact-assessment.
Sources
references/sources.md in this skill lists the outside authorities for the questions here, what each is authoritative for, and what you may do with it. Check the current Microsoft Learn documentation before stating how a feature behaves, because Dynamics 365 changes monthly, and cite what you used.
Never
- Invent a retention period instead of taking it from the organisation's schedule.
- Run a bulk delete in production that has not been tested against production-like data in a sandbox.
- Treat deletion in Dataverse as complete while downstream copies remain.
- Migrate data already past its retention period without a documented reason.
- Delete or anonymise records that are under a legal hold.
Sources for this skill
Direct marketing and privacy and electronic communications
- Publisher: Information Commissioner's Office (UK)
- Link: https://ico.org.uk/for-organisations/direct-marketing-and-privacy-and-electronic-communications/
- Authoritative for: The UK rules for electronic marketing by email and text, including consent and the soft opt-in.
- What you may do: Reuse terms not yet confirmed. Treat as read and cite only.
- Last checked: 2026-10-15
Microsoft responsible AI principles and practices
- Publisher: Microsoft (Global)
- Link: https://www.microsoft.com/en-us/ai/responsible-ai
- Authoritative for: The principles Microsoft applies to its AI features, used as the reference point for reviewing Copilot and agent use.
- What you may do: Read and cite. Summarise in your own words; do not reproduce the text.
- Last checked: 2026-10-15
Ownership-based security in Microsoft Dataverse
- Publisher: Microsoft (Global)
- Link: https://learn.microsoft.com/en-us/power-platform/admin/wp-security-cds
- Authoritative for: Security roles, business units, teams and record ownership in Dataverse.
- What you may do: Read and cite. Summarise in your own words; do not reproduce the text.
- Last checked: 2026-10-15
UK GDPR guidance and resources
- Publisher: Information Commissioner's Office (UK)
- Link: https://ico.org.uk/for-organisations/uk-gdpr-guidance-and-resources/
- Authoritative for: The UK regulator's guidance on lawful basis, individual rights, retention and accountability under UK GDPR.
- What you may do: Reuse terms not yet confirmed. Treat as read and cite only.
- Last checked: 2026-10-15
Credit
This skill was created by Simon Foote and Robert Peledie as part of D365Forge, licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Credit them when you share or adapt it; see https://github.com/SimonFoote-greensparx/D365Forge/blob/main/NOTICE.md.