Finding Number Of Working Days Between Two Dates Using Power Automate Flow

Introduction

 
In this article I have explained how to find the number of working days between any two dates.
 

Steps to start the Flow

 
Step 1
 
Open flow.microsoft.com here
 
Step 2
 
Select +Create from the left panel.
 
Finding Number Of Working Days Between Two Dates Using Power Automate Flow 
 
Step 3
 
Select on Automated cloud flow, you will get the  window below
 
Finding Number Of Working Days Between Two Dates Using Power Automate Flow 
 
Step 4
 
Select When an item is created, then click on Create button below to create a flow.
 
Finding Number Of Working Days Between Two Dates Using Power Automate Flow 
 
By the above steps the flow will be created like below. I have here renamed the Flow as Finding the working days.
 
Finding Number Of Working Days Between Two Dates Using Power Automate Flow 
 
Flow to find the number of working days
 
Finding Number Of Working Days Between Two Dates Using Power Automate Flow 
 
Click on New Step,
 
Finding Number Of Working Days Between Two Dates Using Power Automate Flow 
 
Rename it to Start Date and select Project Start Date from the dynamic content list.
 
Finding Number Of Working Days Between Two Dates Using Power Automate Flow 
 
Similarly create or copy this one to My clip board and paste again and add a Data compose for Project End date.
 
Finding Number Of Working Days Between Two Dates Using Power Automate Flow
 
Finding Number Of Working Days Between Two Dates Using Power Automate Flow 
 
Now choose an action Do Until
 
Finding Number Of Working Days Between Two Dates Using Power Automate Flow
 
Finding Number Of Working Days Between Two Dates Using Power Automate Flow
 
Finding Number Of Working Days Between Two Dates Using Power Automate Flow 
 
Select Add an Action inside the Do Until Action.
 
Finding Number Of Working Days Between Two Dates Using Power Automate Flow 
 
Now outside the Do until action add a new step and initialize variable add Apply to Each and add condition.
 
Finding Number Of Working Days Between Two Dates Using Power Automate Flow
 
Finding Number Of Working Days Between Two Dates Using Power Automate Flow 
 
The output of Weekdays is the solution of finding the number of working days between the Dates.
 
Now we will see how to send an Email
 
Finding Number Of Working Days Between Two Dates Using Power Automate Flow 
 
As we have started the flow with When an item is created, now we will see how to create an item in the Share Point list which I have given as a reference.
 
In my last article “Project Management Application (Create Project) Using PowerApps And SharePoint Online” I have given an idea to save all the input from Power Apps to the Share Point List.
 
Now when we click on Create Project, a record will be created in the SharePoint List and an Email will be triggered. Below screenshot is for Reference.
 
Finding Number Of Working Days Between Two Dates Using Power Automate Flow 
 
Email Notification
 
Finding Number Of Working Days Between Two Dates Using Power Automate Flow 
 
*Limitation: The way of finding the days is limited up to 60 days. This process can be mostly used to find the shorter duration like Task days.
 

Conclusion

 
As there is no direct way to find the number of working days by using Power Automate, with this process I found a good way to meet my requirement. I hope you will enjoy working with this in your project requirement. 


Similar Articles