TLTan LeAI, cloud & automation for legacy systems · CalgaryLet’s talk
← All posts

Power Automate business case: a holiday request flow

A holiday request flow built from Microsoft Forms, Teams, Power Automate and Exchange: the form, the manager lookup, the approval and the condition, with screenshots.

From the archive · a 2021 working note, kept for reference.

Business case

Create a holiday request using Microsoft Forms, Teams, Power Automate (Flow) and Exchange.

Solution

1. Create the form

Microsoft Forms holiday request form in mobile preview with first name, last name, start date and end date fields

Holiday request form added as a Fill tab in the General channel of a Microsoft Teams team

3. Create the flow

Select When a new response is submitted, then get the response details:

Flow trigger When a new response is submitted, followed by Get response details for the Holiday request form

Next, get the manager:

Get manager (V2) action using the form responder's email as the user UPN to look up their manager

Next, send an approval:

Start and wait for an approval: Approve/Reject first to respond, titled with the requester's name and dates in details

Next, apply the condition:

Condition on approval outcome: if approved, email and create a Planner task; if rejected, send a rejection email

Done!

Test result

Test run: an employee fills in the holiday request form in Teams with name, start date and end date

Flow run in progress: form trigger, response details and manager lookup done, waiting on the approval step

Teams Approvals app listing the new holiday request with status Requested, sent to the approvers

Approval request details in Teams showing the requester's name and dates, with a comment ready to approve

Completed flow run: all steps, including the approval and the condition, succeeded

Planner task created by the approved request, with the employee assigned, start and due dates and notes

First published on tanldt.blogspot.com on Jul 10, 2021.