This Microsoft Flow tutorial, I will demonstrate how to create a leave request approval workflow using Microsoft flow in SharePoint Online.
In every organization, there is a need to follow a process to track leave history for employees. So here I am using Microsoft Flow to send approval to the manager for taking a leave.
In my previous post, we discussed how to create a leave request approval workflow using Microsoft SharePoint designer 2013 workflow in SharePoint Online Office 365.
Create a Leave request approval workflow using Microsoft Flow in SharePoint Online
Here we will first create a leave request list where users will submit the leave request in SharePoint Online.
Check Out Microsoft Flow and PowerApps Video Training Course (Lifetime Access)
Here first, Employee creates a leave request in the SharePoint list. The leave request goes to her/his manager for approval. If Manager Approves the request, an Email is triggered to all stakeholders required. And then Workflow closes.
If you are new to Microsoft Flow and SharePoint Modern experience then go through the below two tutorials:
- What is Microsoft Flow [Step by Step Tutorial and Example in SharePoint Online Office 365]
- SharePoint Modern Experience – All You Need to Know!
Step 1 : In this step I have created a list called “Leave request” in the SharePoint Online site.
Step 2: Next click on Flow in top of the list and create a flow like below:
Step 3: Next, you will get a popup where you have to choose which type of workflow you want. Here we can choose Start approval when new item added.
Step 4: Make sure you successfully configure outlook and full permission to the site because SharePoint will verify it before creating a new flow. Next click on Continue.
Step 5: Next enter your site name where you have already created your list. Once you do connect your site, It will show you all list name inside that site.
Step 6: Next approval will start so we need to configure the assign name and Title of the task.
Step 7: Next set the condition if approved else rejected the task based on user input value.
Step 8: Next add an action if task got approved.
Step 9: If task got rejected then flow would be like as below image.
Step 10: The full image of the Microsoft flow would be as below screenshot.
Step 11: Next click on Save to go ahead and test the flow once done. Manager will receive an email if someone will apply for a leave.
When manager will click on this link,It will redirect approval page. Please look into the below screenshot.
Step 12: If your manager approved then requester will receive an email confirmation.
The same behavior for manager will rejecting the workflow.
You may like following Microsoft flow examples:
- Different ways to create auto increment column in SharePoint 2013/2016/Online list
- Send an Email when Item added in a SharePoint list using Microsoft Flow
- On-premises Data Gateway Installation and Configuration for Microsoft Flow
- Failed to create a connection for connection id while setting up push notification in Microsoft Flow in Office 365
- Microsoft Flow Example: Copy files from one SharePoint Online account or folder to another
- Microsoft Flow Error Handling
- Microsoft Flow Examples: Send a customized email when a new SharePoint list item is added
- Microsoft Flow Send approval email when a new item is added in SharePoint Online Office 365
- Microsoft Flow: Save my email attachments to a SharePoint document library
- Microsoft Flow Example Save tweets that include a specific hashtag to a SharePoint list
- Microsoft flow Save my email attachments to a SharePoint document library Configuration
- Share organization new employee details in Twitter using Microsoft flow
- Send a text to all emergency contacts from a SharePoint list using Microsoft Flow
- Business Process Automation through SharePoint
We can also track the history of the Microsoft flow in the admin page of the flow. This is all about leave approval workflow using Microsoft flow in SharePoint Online.
Rajkiran is currently working as a SharePoint Consultant in India . Rajkiran having 7+ years of experience in Microsoft Technologies such as SharePoint 2019/2016/2013/2010, MOSS 2007,WSS 3.0, Migration, Asp.Net, C#.Net, Sql Server, Ajax, jQuery etc.He is C#Corner MVP (2 Times).
Download SharePoint Online Tutorial PDF FREE!
Get update on Webinars, video tutorials, training courses etc.