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!
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.
If the condition is not met, the date minus two days is weekday, and then the corresponding action is configured.
Take a try.
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
I've discovered the solution to this issue for another user here on the community, and I have written a blog article that explains the solution in detail. Check it out here:
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Three Super User rank tiers have been launched!
Features releasing from October 2020 through March 2021
We've updated and improved the layout and uploading format of the Power Automate Cookbook!
Fill out a quick form to claim your user group badge now!