Flow Designer - Date duration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2023 08:14 AM
Hello
Would like to get some help on Flow Designer please.
We have a Service Catalog Item with a date field variable, from this date field we need to create catalog tasks 5 months prior to the date value, so if the Date field is October 1st, catalog tasks need to be created May 1st.
I have created a custom action to subtract 5 months but I cannot find a way to create the catalog tasks once that result date is reached.
In workflow we would use a Wait for Condition by simply selecting 5 months but flow designer doesn't have months within the Wait for Condition. Do we need to wait 3650 hours and not use the custom action at all?
What are the implications of leaving a flow waiting for long periods of time?
Any advice would be great. Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2023 09:10 AM - edited 04-28-2023 09:15 AM
@Sharon9 Unfortunately, the Wait for duration field only accepts values in Hours, Minutes and Seconds. In this case I recommend using a Wait for duration action instead of creating a custom action, Wait for duration action manages the timer on its own and you wouldn't have to create separate schedule job to track the completion of the duration.
Here is the image from ServiceNow documentation where they have also set the duration of 10 days in hours.
Here is the source for your reference https://docs.servicenow.com/bundle/rome-servicenow-platform/page/administer/flow-designer/concept/fl...
Regarding keeping the flow waiting for a longer duration, your flow will anyways be waiting even if you create a custom action and track the time using some schedule job (along with a Wait for condition action in the flow). Hence, I don't see any harm in keeping the flow waiting for a longer duration.
If you are still averse the idea of keep the flow waiting then I recommend using scripted scheduled jobs instead of using the flow altogether for this purpose.