Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

Create event Only in business days

Hi all,


I would like to build a flow that creates an outlook event only if the a specific date i have is a weekday.

I've got a date field "Date1"- i would like to substract 2 days from that date, check if the resulting date is a weekday and then determine the actions according to that.


Any ideas how that can be done?
Help would be appreciated!

Community Support Team
Community Support Team

Re: Create event Only in business days

Hi @RaninHa,


I'm not sure how your "Date1" field was created, I used compe to specify a date to do the test.
You could create your Flow in this way.


Use Expression—addDays() function to substract 2 days from that date. Like :  addDays(Date1’,-2)

Use dayOfWeek() function to determine if a date is the day of the week. If the result is 0 or 6, the date is not weekday.

@or(equals(dayOfWeek(outputs('substract_2_days')),0),equals(dayOfWeek(outputs('substract_2_days')), 6))

If the condition is not met, the date minus two days is weekday, and then the corresponding action is configured.


Image reference:


Take a try.


Best Regards,


Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Re: Create event Only in business days

Hello, @RaninHa!

Thank you for posting on the Flow Community Forum! Have you had an opportunity to apply @v-bacao-msft‘s recommendation to adapt your Flow? If yes, and you find that solution to be satisfactory, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify!

Thank you for being an active member of the Flow Community!

Flow Community Manager

Microsoft Flow Community Manager

Helpful resources


Microsoft Flow Online Conference

Join us for a FULL day of FREE Microsoft Flow Sessions from some of the best minds in the industry!


Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020


Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


New Flow Community Board!

Check out the new Microsoft Flow Community Blog Topic Suggestion board!


Microsoft Learn

Learn how to build the business apps that you need


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 83 members 3,869 guests
Please welcome our newest community members: