Stage 17 of 17
The Visitor Management system collects personal data about visitors. UK GDPR requires that personal data is not kept longer than necessary. This challenge asks you to design and build an automated retention process that deletes visitor records after the approved retention period.
Important — Read This First
The retention period used in this challenge (12 months) is a fictional value created for learning purposes only. It is not legal advice. In a real organisation, the retention period for visitor records must be determined by the organisation's Data Protection Officer in accordance with applicable law, regulatory requirements, and the organisation's own data retention policy. Do not use the retention period from this lab in a real application without consulting your organisation's DPO.
Message from Fatima Al-Hassan, Data Protection Officer
From: Fatima Al-Hassan, Data Protection Officer
Subject: Visitor Management — Retention Automation
Priya, the system is working well. I have one outstanding concern: the retention process. At the moment, you are manually reviewing the Visits list each month and deleting records older than 12 months. This is not sustainable, and there is a risk that records will be missed.
I need an automated process that: (1) identifies visit records where the ExpectedDate is more than 12 months ago; (2) deletes those records automatically; (3) creates an audit log entry recording what was deleted and when; and (4) handles exceptions — some records may need to be retained beyond 12 months for legal reasons.
Please design and build this. I want to see the requirement, the data rule, the automation, the exception process, the audit log, and the security controls.
Fatima
Task 1 — Write the Retention Requirement
Write a formal requirement for the automated retention process. Your requirement must specify:
Write your requirement here
Task 2 — Design the Data Rule
Design the data changes needed to support the retention process. You will need to add fields to the Visits list. Consider:
Design the Retention Audit Log list. What columns does it need?
Design your audit log columns here
Task 3 — Build the Retention Flow
Build a Power Automate flow named DToDLab004-RetentionProcess. The flow must:
Common Mistake
Task 4 — Design the Exception Process
Some visit records may need to be retained beyond 12 months. Design the exception process:
Task 5 — Security Considerations
The retention process deletes personal data. This requires careful security controls:
Task 6 — Write and Execute Test Cases
Write at least 3 test cases for the retention process. Your test cases must cover:
Write your test cases here
You have completed the full DToD Lab Method for DTOD-004 — Visitor Management. You have built a complete Power Apps canvas app with a 6-status lifecycle, two automated flows, a data minimisation approach, and a two-layer security model — working through all 17 stages from business brief to retention challenge.
17
Stages completed
25
Requirements written
16+
Test cases executed
Next: DTOD-005
Need more help with the concepts?
Visit DosToDigital for guides, templates, and deeper explanations.