- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2025 01:54 AM
Hi,
I'm trying to configure a flow in Flow Designer where the second and third catalog tasks should be triggered 10 business days after the first catalog task is closed.
To achieve this, I added a Timer activity after the first catalog task, setting the duration to 10 days and the schedule to 8 AM – 5 PM on business days. However, the flow is not behaving as expected. @Ankur Bawiskar
Thanks,
Spandana.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2025 02:16 AM
then follow this
1) when 1st task was closed, use Run Script after 1st task closure and store the closure date/time in workflow scratchpad variable
2) then add 10 business days to it, check this link and use that in workflow wait script
// get task closure date/time
// add 10 business days to it
answer = gs.dateDiff(gs.nowDateTime(), finalDate, true);
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2025 02:03 AM
you are using flow but you are sharing screenshots of Workflow.
You can use Schedule as per what customer wants and then use Wait for Duration flow logic and mention the days
Something like this and give your schedule
1) it will wait for 80 hours (considering 1 business day = 8 hours as per your schedule), so I used 8*10 = 80
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2025 02:05 AM
@Ankur Bawiskar sorry it my mistake, we should match this requirement in workflow only. Can you please help on this how to achieve it in workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2025 02:15 AM
@Ankur Bawiskar can you please help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2025 02:16 AM
then follow this
1) when 1st task was closed, use Run Script after 1st task closure and store the closure date/time in workflow scratchpad variable
2) then add 10 business days to it, check this link and use that in workflow wait script
// get task closure date/time
// add 10 business days to it
answer = gs.dateDiff(gs.nowDateTime(), finalDate, true);
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader