cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

Get 3 working/business days before date

Hi folks,

 

Previously i raised a discussion on a specific business day.

However i am not too familiar with the flow. How do we change it to 3 working days before date (E.g. 28th Oct 2020)?

If it is 28th Oct, then the new date will be 23rd Oct since 24th and 25th oct is weekend.

 

Get specific business days before a specific day on the month 

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @NewUser22,

 

You could use dayOfWeek() function to get the the day of the week from the specified timestamp where Sunday is 0, Monday is 1, and so on. If it is less than or equals to 3, use addDays() function to sub 5 days, including weekend, or just needs to sub 3 days:

dayOfWeek(outputs('Compose'))
addDays(outputs('Compose'),-5,'yyyy-MM-dd')
addDays(outputs('Compose'),-3,'yyyy-MM-dd')

Screenshot 2020-10-28 152010.jpg

 

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

View solution in original post

1 REPLY 1
Community Support
Community Support

Hi @NewUser22,

 

You could use dayOfWeek() function to get the the day of the week from the specified timestamp where Sunday is 0, Monday is 1, and so on. If it is less than or equals to 3, use addDays() function to sub 5 days, including weekend, or just needs to sub 3 days:

dayOfWeek(outputs('Compose'))
addDays(outputs('Compose'),-5,'yyyy-MM-dd')
addDays(outputs('Compose'),-3,'yyyy-MM-dd')

Screenshot 2020-10-28 152010.jpg

 

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

View solution in original post

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (11,023)