How to exclude weekends when running a flow on weekdays?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
How to exclude weekends when running a flow on weekdays?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello,
If this is a scheduled flow, you have the option to skip weekends by setting the trigger of the flow to execute on days from Monday to Friday only.
You can do this using the Flow Designer. Set the schedule to be executed once a week but only for Monday to Friday, and ensure that Saturday and Sunday are deselected.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @VIKASM535239375 ,
OOB you cannot set a trigger condition to exclude weekends.
As a workaround you can create a variable and set the current day to it.
Create an if condition logic to check if day of week is 6 or 7 then end the flow.
If my response answered your query, please mark my response as correct/helpful.
Thanks
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
hi @VIKASM535239375 ,
1) open flow in flow designer
2) cilck on create code snippet and copy 'server' code
3) create scheduled job > New > Automatically run a script of your choosing
give name ,select weekly and weekday when you have to execute
paste code you have copied from floe code snippet in script section
4) once you save the record you can see 'execute now' button ,click on button and test
If this helped, please mark it as Helpful. If it resolved your issue, please mark it as the Accepted Solution.