Stage 9 of 17

Stage 9 of 17

Automate

4 scheduled Power Automate flows: EOL Reminder, Contract Review Reminder, Missing Owner Notification, and Risk Review Reminder. Full action-by-action build instructions with expressions and test scenarios.

Note

All 4 flows use a Scheduled (Recurrence) trigger, not a Dataverse row trigger. This is a deliberate design choice: scheduled flows run at a predictable time, are easy to test by running manually, and do not fire on every record save. The trade-off is that notifications are not instant — they fire at the next scheduled run. For this use case (governance reminders), daily or weekly is appropriate.

Flow Designs

FL-001

DToDLab020-EOLReminder

Trigger: Scheduled — Daily at 08:00Requirement: REQ-019

Notifies the Technical Owner when a Technology component's EOL Date is within 90 days, or when it has passed EOL.

Actions

1

Recurrence trigger

Frequency: Day. Interval: 1. Start time: 08:00 UTC.

2

List rows — Technology table

Filter: EOL Date is not empty AND EOL Status is not equal to "Supported". This retrieves all Technology records that have an EOL Date and are not already marked Supported.

3

Apply to each — Technology row

Loop over each Technology record returned.

4

Condition: Is EOL within 90 days or past?

Expression: addDays(utcNow(), 90) is greater than or equal to item()?['dtod_eoldate']. This checks if today + 90 days is on or after the EOL Date — meaning the EOL Date is within the next 90 days (or already past).

5

If Yes — Get related Application

Get row by ID — Application table. Row ID: item()?['_dtod_application_value']. This retrieves the Application record linked to this Technology.

6

If Yes — Get Technical Owner

Get row by ID — Technical Owner table. Row ID: Application?['_dtod_technicalowner_value']. This retrieves the Technical Owner of the Application.

7

If Yes — Send an email (V2)

To: Technical Owner email. Subject: "EOL Alert: [Component Name] on [Application Name]". Body: Component name, application name, EOL date, EOL status, link to the Technology record in the app, and a link to the Application record.

8

If No — Do nothing

No action required. The component is not approaching EOL.

Test Scenario

Set the EOL Date on a Technology record to today + 30 days. Run the flow manually. Verify the Technical Owner receives an email. Then set the EOL Date to today + 100 days and run again — no email should be sent.

Design Notes

This flow runs daily. If a component has been past EOL for months, the Technical Owner will receive a daily email until the EOL Status is updated to "Past EOL" and a Replacement Plan is documented. Consider adding a condition to suppress the email if a Replacement Plan already exists.

FL-002

DToDLab020-ContractReviewReminder

Trigger: Scheduled — Daily at 08:00Requirement: REQ-011

Notifies the Contract Owner and Procurement Director at three points before a contract renewal deadline: (Notice Period + 30 days), (Notice Period), and 30 days before End Date.

Actions

1

Recurrence trigger

Frequency: Day. Interval: 1. Start time: 08:00 UTC.

2

List rows — Contract table

Filter: Status = "Active". Retrieves all active contracts.

3

Apply to each — Contract row

Loop over each active Contract record.

4

Calculate three reminder dates

Use Compose actions to calculate: Reminder1 = End Date minus Notice Period minus 30 days. Reminder2 = End Date minus Notice Period. Reminder3 = End Date minus 30 days. Expression example for Reminder1: addDays(item()?['dtod_enddate'], mul(-1, add(item()?['dtod_noticeperioddays'], 30)))

5

Condition: Is today one of the three reminder dates?

Expression: or(equals(formatDateTime(utcNow(), 'yyyy-MM-dd'), formatDateTime(outputs('Reminder1'), 'yyyy-MM-dd')), equals(formatDateTime(utcNow(), 'yyyy-MM-dd'), formatDateTime(outputs('Reminder2'), 'yyyy-MM-dd')), equals(formatDateTime(utcNow(), 'yyyy-MM-dd'), formatDateTime(outputs('Reminder3'), 'yyyy-MM-dd')))

6

If Yes — Get Contract Owner

Get row by ID — Business Owner table. Row ID: item()?['_dtod_contractowner_value'].

7

If Yes — Send email to Contract Owner

To: Contract Owner email. Subject: "Contract Review Required: [Contract Name]". Body: Contract name, supplier, application, contract value, end date, notice period, days to renewal, and a link to the Contract record.

8

If Yes — Send email to Procurement Director

To: helena.marsh@contoso.co.uk (hardcoded — or use an environment variable). Same body as Contract Owner email.

Test Scenario

Set a Contract's End Date to today + Notice Period + 30 days (so Reminder1 fires today). Run the flow manually. Verify both the Contract Owner and Helena Marsh receive emails. Check the email body contains the correct contract details.

Design Notes

The Procurement Director email is hardcoded in this implementation. In a production system, use an environment variable so the email address can be changed without editing the flow. See Stage 13 (Release) for environment variable configuration.

FL-003

DToDLab020-MissingOwnerNotification

Trigger: Scheduled — Weekly on Monday at 08:00Requirement: REQ-026

Notifies the IT Team Lead of any Application records where the Business Owner or Technical Owner lookup is empty.

Actions

1

Recurrence trigger

Frequency: Week. Interval: 1. On these days: Monday. Start time: 08:00 UTC.

2

List rows — Application table

Filter: Status = "Active" AND (Business Owner is empty OR Technical Owner is empty). OData filter: dtod_status eq 1 and (_dtod_businessowner_value eq null or _dtod_technicalowner_value eq null). Note: Status choice values are stored as integers in Dataverse — check the exact integer for "Active" in your environment.

3

Condition: Are there any missing owner applications?

Expression: greater(length(body('List_rows')?['value']), 0). Checks if the list returned any rows.

4

If Yes — Build the email body

Use a Select action to extract Application Name from each row. Then use a Join action to create a comma-separated list of application names.

5

If Yes — Send email to IT Team Lead

To: t.reeves@contoso.co.uk (or environment variable). Subject: "Action Required: Applications with Missing Owners". Body: "The following Active applications have no Business Owner or Technical Owner assigned: [list of application names]. Please assign owners in the Application Portfolio system."

6

If No — Do nothing

All active applications have owners. No action required.

Test Scenario

Create an Application record with Status = Active and leave Business Owner empty. Run the flow manually. Verify the IT Team Lead receives an email listing that application. Then assign a Business Owner and Technical Owner and run again — no email should be sent.

Design Notes

This flow runs weekly rather than daily to avoid alert fatigue. A missing owner is a data quality issue, not an emergency. The IT Team Lead should review the list each Monday morning and assign owners before the next weekly run.

FL-004

DToDLab020-RiskReviewReminder

Trigger: Scheduled — Daily at 08:00Requirement: REQ-023

Notifies the Risk Owner when a Risk record's Next Review Date is within 14 days.

Actions

1

Recurrence trigger

Frequency: Day. Interval: 1. Start time: 08:00 UTC.

2

List rows — Risk table

Filter: Mitigation Status is not equal to "Mitigated" AND Mitigation Status is not equal to "Accepted" AND Next Review Date is not empty. Retrieves all open risks with a review date.

3

Apply to each — Risk row

Loop over each Risk record.

4

Condition: Is Next Review Date within 14 days?

Expression: lessOrEquals(item()?['dtod_nextreviewdate'], addDays(utcNow(), 14)). Checks if the Next Review Date is on or before today + 14 days.

5

If Yes — Get Risk Owner

Get row by ID — Technical Owner table. Row ID: item()?['_dtod_riskowner_value'].

6

If Yes — Get related Application

Get row by ID — Application table. Row ID: item()?['_dtod_application_value'].

7

If Yes — Send email to Risk Owner

To: Risk Owner email. Subject: "Risk Review Due: [Risk Title]". Body: Risk title, application name, risk score, mitigation status, next review date, and a link to the Risk record.

8

If Yes — Condition: Is Risk Score ≥ 15?

Expression: greaterOrEquals(item()?['dtod_riskscore'], 15). High-risk items also notify the IT Team Lead.

9

If High Risk — Send email to IT Team Lead

To: t.reeves@contoso.co.uk. Subject: "High Risk Review Due: [Risk Title] (Score: [Risk Score])". Same body as Risk Owner email, plus: "This risk has a score of [Risk Score] and requires escalation."

Test Scenario

Set a Risk record's Next Review Date to today + 7 days and Mitigation Status to "In Progress". Run the flow manually. Verify the Risk Owner receives an email. Set Risk Score to 20 and run again — verify both the Risk Owner and IT Team Lead receive emails.

Design Notes

High-risk items (score ≥ 15) trigger two emails: one to the Risk Owner and one to the IT Team Lead. This implements the escalation requirement from the Process stage. The IT Team Lead email uses a different subject line so it is easy to filter in Outlook.

OData Filter Syntax for Dataverse

When filtering Dataverse rows in Power Automate, use OData filter syntax. Lookup columns use the format _columnname_value (with underscores and _value suffix). Choice columns store integer values, not text labels — check the integer value for each choice option in the column definition. Null checks use eq null not eq "".

Stage Complete — What You Now Have

  • ✓FL-001 DToDLab020-EOLReminder: daily, notifies Technical Owner when component EOL is within 90 days
  • ✓FL-002 DToDLab020-ContractReviewReminder: daily, notifies Contract Owner and Procurement Director at 3 trigger points
  • ✓FL-003 DToDLab020-MissingOwnerNotification: weekly Monday, notifies IT Team Lead of applications with no owner
  • ✓FL-004 DToDLab020-RiskReviewReminder: daily, notifies Risk Owner (and IT Team Lead for High Risk) when review is due within 14 days
  • ✓All flows: full action-by-action build instructions with OData expressions
  • ✓All flows: test scenarios defined
NextSecure

Need more help with the concepts?

Visit DosToDigital for guides, templates, and deeper explanations.

DosToDigital
DToD Labs

Learn it. Build it. Make it work.

A DosToDigital Project

About DToD Labs

Practical technology learning for Microsoft 365 and Power Platform. Build real business solutions from real business problems.

Learn the concepts at DosToDigital. Put them into practice at DToD Labs.

DToD Labs provides practical learning projects for educational purposes. Microsoft services, interfaces, licensing and product capabilities change over time. Always check current Microsoft documentation and licensing before implementing a solution in a production environment. All organisations, business scenarios and data used in DToD Labs are fictional. Learners should not use confidential employer, customer or personal information when following DToD Labs exercises.

© 2026 DToD Labs — A DosToDigital Project