Stage 9 of 17
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?
| Flow | Trigger | Notifies |
|---|---|---|
| DToDLab010-NewRequestAck | When an item is created in the Requests list | Sends an acknowledgement to the requester and notifies the IT team |
| DToDLab010-AssignmentNotification | When an item is modified in the Requests list | Notifies the assigned team member when a request is assigned to them |
| DToDLab010-StatusChangeNotification | When an item is modified in the Requests list | Notifies the requester when the status of their request changes |
| DToDLab010-ResolutionNotification | 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 |
| DToDLab010-OverdueAlert | 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 |
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.
Trigger: When an item is created
Site: https://[tenant].sharepoint.com/sites/ITServiceRequests. List: Requests.
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.
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.
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".
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.
Trigger: When an item is modified
Site: IT Service Requests. List: Requests.
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).
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.".
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.
Trigger: When an item is modified
Site: IT Service Requests. List: Requests.
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.
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.
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.
Trigger: When an item is modified
Site: IT Service Requests. List: Requests.
Condition: Status = Resolved
Condition: equals(triggerBody()?["Status"], "Resolved"). If false: terminate.
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".
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.
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.
Get all In Progress requests
Get items action. Site: IT Service Requests. List: Requests. Filter query: Status eq 'In Progress' and AssignedTo ne null.
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.
Condition: no updates in last 2 days
Condition: empty(body("Get_recent_updates")?["value"]). If true: send overdue notification.
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.".
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.
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.
Need more help with the concepts?
Visit DosToDigital for guides, templates, and deeper explanations.