Stage 9 of 17

Stage 9 of 17

Automate

5 Power Automate flows: New Request Acknowledgement, Assignment Notification, Status Change Notification, Resolution Notification, and Overdue Request Alert. Each flow is built step by step with complete configuration and failure handling.

Why Are We Doing This?

The 5 flows in this lab address the two biggest problems identified in discovery: requesters not knowing their request was received (flows 1, 3, 4), and the IT team not knowing when requests are assigned or overdue (flows 2, 5). Without automation, both of these require manual effort — which is exactly what the current process fails at.

Flow Overview

FlowTriggerNotifies
DToDLab010-NewRequestAckWhen an item is created in the Requests listSends an acknowledgement to the requester and notifies the IT team
DToDLab010-AssignmentNotificationWhen an item is modified in the Requests listNotifies the assigned team member when a request is assigned to them
DToDLab010-StatusChangeNotificationWhen an item is modified in the Requests listNotifies the requester when the status of their request changes
DToDLab010-ResolutionNotificationWhen an item is modified in the Requests list AND Status = ResolvedNotifies the requester that their request has been resolved, including the Resolution Note and instructions for reopening
DToDLab010-OverdueAlertScheduled: daily at 08:00 (weekdays only)Identifies requests that have been In Progress for more than 2 business days without an update, and notifies the assignee and IT Team Lead

Flow Builds

DToDLab010-NewRequestAck

Trigger: When an item is created in the Requests list

Sends an acknowledgement to the requester and notifies the IT team. Sets the status to Triage.

1

Trigger: When an item is created

Site: https://[tenant].sharepoint.com/sites/ITServiceRequests. List: Requests.

2

Generate Request ID

Add a Compose action. Expression: concat("REQ-", formatDateTime(utcNow(), "yyyyMMdd"), "-", padLeft(string(triggerBody()?["ID"]), 3, "0")). This creates the RequestID from the current date and the SharePoint item ID.

3

Update item: set RequestID and Status

Update item action. Site: IT Service Requests. List: Requests. ID: triggerBody()?["ID"]. RequestID: outputs("Generate_Request_ID"). Status: Triage.

4

Send email to requester

Send an email (V2) action. To: triggerBody()?["RequesterEmail"]. Subject: "Your IT request has been received — " & outputs("Generate_Request_ID"). Body: "Dear " & triggerBody()?["RequesterName"] & ", Your IT service request has been received. Request ID: " & outputs("Generate_Request_ID") & " Title: " & triggerBody()?["Title"] & " Priority: " & triggerBody()?["Priority"] & " We will review your request and assign it to a team member shortly. IT Team, Contoso Services Ltd".

5

Post Teams message to IT Team channel

Post message in a chat or channel action. Post as: Flow bot. Post in: Channel. Team: IT Team. Channel: General. Message: "📥 New request: " & outputs("Generate_Request_ID") & " — " & triggerBody()?["Title"] & " (" & triggerBody()?["Priority"] & ") from " & triggerBody()?["RequesterName"].

Failure Handling

If the email fails (e.g. invalid email address), the flow will fail. Add a Configure run after setting on the email action to handle failures: send a Teams message to the IT Team channel instead.

DToDLab010-AssignmentNotification

Trigger: When an item is modified in the Requests list

Notifies the assigned team member when a request is assigned to them.

1

Trigger: When an item is modified

Site: IT Service Requests. List: Requests.

2

Condition: Status = Assigned AND AssignedTo is not empty

Condition action. Expression: and(equals(triggerBody()?["Status"], "Assigned"), not(empty(triggerBody()?["AssignedTo"]?["Email"]))). If false: terminate (do nothing).

3

Send email to assigned team member

To: triggerBody()?["AssignedTo"]?["Email"]. Subject: "Request assigned to you — " & triggerBody()?["RequestID"]. Body: "A request has been assigned to you. Request ID: " & triggerBody()?["RequestID"] & " Title: " & triggerBody()?["Title"] & " Priority: " & triggerBody()?["Priority"] & " Requester: " & triggerBody()?["RequesterName"] & " Please review and begin work as soon as possible.".

4

Post Teams message to assigned team member

Post message in a chat or channel. Post as: Flow bot. Post in: Chat with Flow bot. Recipient: triggerBody()?["AssignedTo"]?["Email"]. Message: "You have been assigned request " & triggerBody()?["RequestID"] & ": " & triggerBody()?["Title"].

Failure Handling

The condition check prevents the flow from firing on every modification. If the Teams message fails (e.g. the user has not used Teams), the email is still sent. Use Configure run after to handle Teams failures gracefully.

DToDLab010-StatusChangeNotification

Trigger: When an item is modified in the Requests list

Notifies the requester when the status of their request changes.

1

Trigger: When an item is modified

Site: IT Service Requests. List: Requests.

2

Get the previous version of the item

Use the Get changes for an item or a file (properties only) action to retrieve the previous Status value. This allows the flow to detect when Status has actually changed.

3

Condition: Status has changed AND is not New

Condition: and(not(equals(triggerBody()?["Status"], body("Get_changes")?["Status"])), not(equals(triggerBody()?["Status"], "New"))). If false: terminate.

4

Send email to requester

To: triggerBody()?["RequesterEmail"]. Subject: "Update on your request " & triggerBody()?["RequestID"]. Body: "The status of your request has been updated. Request ID: " & triggerBody()?["RequestID"] & " Title: " & triggerBody()?["Title"] & " New Status: " & triggerBody()?["Status"] & " If you have any questions, please reply to this email or contact the IT team.".

Failure Handling

The "Get changes" action requires the SharePoint connector. If it is not available, use a workaround: store the previous status in a separate column (PreviousStatus) and compare it in the condition. Update PreviousStatus in the flow after the notification is sent.

DToDLab010-ResolutionNotification

Trigger: When an item is modified in the Requests list AND Status = Resolved

Notifies the requester that their request has been resolved, including the Resolution Note and instructions for reopening.

1

Trigger: When an item is modified

Site: IT Service Requests. List: Requests.

2

Condition: Status = Resolved

Condition: equals(triggerBody()?["Status"], "Resolved"). If false: terminate.

3

Send resolution email to requester

To: triggerBody()?["RequesterEmail"]. Subject: "Your request has been resolved — " & triggerBody()?["RequestID"]. Body: "Your IT service request has been resolved. Request ID: " & triggerBody()?["RequestID"] & " Title: " & triggerBody()?["Title"] & " Resolved by: " & triggerBody()?["AssignedTo"]?["DisplayName"] & " Resolved on: " & formatDateTime(triggerBody()?["ResolvedDate"], "dd/MM/yyyy HH:mm") & " Resolution: " & triggerBody()?["ResolutionNote"] & " If the issue recurs within 5 business days, you can reopen this request in the IT Service Request app. IT Team, Contoso Services Ltd".

4

Post Teams message to IT Team channel

Message: "✅ Request resolved: " & triggerBody()?["RequestID"] & " — " & triggerBody()?["Title"] & " (resolved by " & triggerBody()?["AssignedTo"]?["DisplayName"] & ")".

Failure Handling

If the ResolutionNote is empty (which should not happen if the Resolve screen enforces the minimum length), the email body will have a blank resolution section. Add a condition to check that ResolutionNote is not empty before sending.

DToDLab010-OverdueAlert

Trigger: Scheduled: daily at 08:00 (weekdays only)

Identifies requests that have been In Progress for more than 2 business days without an update, and notifies the assignee and IT Team Lead.

1

Trigger: Recurrence

Frequency: Week. Interval: 1. On these days: Monday, Tuesday, Wednesday, Thursday, Friday. At these hours: 8. At these minutes: 0. Time zone: (UTC+00:00) Dublin, Edinburgh, Lisbon, London.

2

Get all In Progress requests

Get items action. Site: IT Service Requests. List: Requests. Filter query: Status eq 'In Progress' and AssignedTo ne null.

3

Apply to each: check for recent updates

For each request in the results: Get items from RequestUpdates where RequestRef = current item RequestID. Filter: UpdateDate > addDays(utcNow(), -2). If no updates found in the last 2 days: this request is overdue.

4

Condition: no updates in last 2 days

Condition: empty(body("Get_recent_updates")?["value"]). If true: send overdue notification.

5

Send overdue email to assignee and IT Team Lead

To: current item AssignedTo Email; t.reeves@contoso.co.uk. Subject: "Overdue request — " & current item RequestID. Body: "The following request has had no update for more than 2 business days. Request ID: " & current item RequestID & " Title: " & current item Title & " Priority: " & current item Priority & " Assigned to: " & current item AssignedTo DisplayName & " Age: " & dateDifference(current item CreatedDate, utcNow()) & " days Please update the request status or add an update.".

6

Post Teams message to IT Team channel

Message: "⚠️ Overdue request: " & current item RequestID & " — " & current item Title & " (assigned to " & current item AssignedTo DisplayName & ", " & dateDifference & " days old, no update in 2 days)".

Failure Handling

The Apply to each loop can be slow if there are many In Progress requests. For the lab, this is acceptable. In a production solution, consider using a SharePoint view that pre-filters overdue requests, or use a stored procedure. If the flow times out, reduce the scope of the Get items query.

Run History and Monitoring

Power Automate records the run history for every flow. Check the run history regularly to identify failures before users report them.

Check run history daily

Navigate to Power Automate → My flows → [flow name] → Run history. Check the most recent run. A green tick means success. A red X means failure.

Investigate failures

Select a failed run. Expand each action to see which one failed and why. Common causes: expired connection (re-authenticate), invalid email address (check the requester email), SharePoint permission error (check the flow connection account has Edit permission).

Set up failure alerts

In each flow, add a Configure run after setting on the final action. If the flow fails, send an email to Priya Mehta (Application Administrator) with the flow name and error details.

Connection account

Each flow runs under a connection account. Use a service account (e.g. itservicedesk@contoso.co.uk) rather than a personal account. If the personal account owner leaves, the flow will fail. POTENTIAL PREMIUM LICENSING — service accounts may require additional licences.

Stage Complete — What You Now Have

  • ✓5 Power Automate flows built and active
  • ✓New Request Acknowledgement: generates RequestID, sets Triage status, emails requester, posts to Teams
  • ✓Assignment Notification: emails and Teams messages the assigned team member
  • ✓Status Change Notification: emails requester on every status change
  • ✓Resolution Notification: emails requester with Resolution Note and reopen instructions
  • ✓Overdue Alert: daily check for In Progress requests with no update in 2 days
  • ✓Run history monitoring and failure handling guidance
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