Stage 9 of 17
Two Power Automate flows handle the notification requirements. The first sends an immediate notification to the host when their visitor arrives. The second sends a daily summary of expected visitors to the reception team each morning.
Why Are We Doing This?
DToDLab004-HostArrivalNotification
Trigger: When an item is modified (SharePoint) | List: Visits
This flow triggers every time a record in the Visits list is modified. It checks whether the Status has been set to "Arrived". If so, it sends an email to the host and updates the status to "Host Notified".
Trigger: "When an item is modified"
Site Address: your SharePoint site URL. List Name: Visits. This trigger fires on every modification to any Visits record.
Action: "Get item"
Site Address: your SharePoint site URL. List Name: Visits. ID: ID (dynamic content from trigger). This retrieves the full record including all fields.
Condition: Check Status = "Arrived"
Left: Status Value (dynamic content from Get item). Condition: is equal to. Right: Arrived (type this value). This prevents the flow from sending a notification on every modification.
Yes branch: Send an email (V2)
To: HostEmail (dynamic content). Subject: Your visitor [VisitorName] has arrived. Body: see email template below.
Yes branch: Update item — set Status to "Host Notified"
Site Address: your SharePoint site URL. List Name: Visits. ID: ID (dynamic content). Status Value: Host Notified. This updates the record so the flow does not trigger again for the same visit.
Scope: Failure handling
Add a Scope action around steps 4 and 5. Configure a 'Run after' on the Scope set to 'has failed'. Inside the failure scope, add a Send an email action to notify the reception team that the notification failed.
Common Mistake
Testing the Flow
DToDLab004-ExpectedVisitorsSummary
Trigger: Recurrence — every day at 08:00 (Monday–Friday)
This flow runs every weekday morning at 08:00. It retrieves all visits expected today with status "Expected", creates an HTML table, and sends it to the reception team email address. If no visitors are expected, it sends a brief notification to that effect.
Trigger: Recurrence
Interval: 1. Frequency: Day. At these hours: 8. At these minutes: 0. Days of the week: Monday, Tuesday, Wednesday, Thursday, Friday.
Action: Get items (SharePoint)
Site Address: your SharePoint site URL. List Name: Visits. Filter Query: see expression below.
Condition: Check if any visits were returned
Left: length(body('Get_items')?['value']). Condition: is greater than. Right: 0.
Yes branch: Create HTML table
From: value (dynamic content from Get items). Columns: Custom. Add columns: Visitor Name (VisitorName), Organisation (VisitorOrganisation), Host (HostName), Expected Time (ExpectedArrivalTime), Office (Office/Value), Type (VisitorType/Value).
Yes branch: Send an email (V2)
To: reception@contoso.co.uk (or a Teams channel email). Subject: see expression. Body: see expression.
No branch: Send an email (V2) — "no visitors today"
To: reception@contoso.co.uk. Subject: No visitors expected today. Body: Good morning, no visitors are expected today.
Beginner Tip
Common Failures and Fixes
Flow does not trigger at 08:00
Check the recurrence trigger timezone setting. Power Automate defaults to UTC. If your office is in BST (UTC+1), set the timezone to "(UTC+00:00) Dublin, Edinburgh, Lisbon, London" and adjust the hour accordingly.
Filter query returns no results even though visits exist
Check the date format in the filter query. SharePoint stores dates in ISO 8601 format (yyyy-MM-dd). The formatDateTime expression must match this format exactly.
HTML table is empty
Check the "From" field in the Create HTML table action. It must reference the "value" array from the Get items action, not the entire Get items output.
Both flows must be owned by the IT Manager (Priya Mehta) or a service account, not by an individual employee. If the flow owner leaves the organisation and their account is deactivated, the flows will stop working.
Add the IT Manager as a co-owner on both flows: open the flow → Edit → Share → Add people → enter the IT Manager's email → select Co-owner.
Need more help with the concepts?
Visit DosToDigital for guides, templates, and deeper explanations.