ServiceNow Flow Designer - Make api call 3 days before the start date
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10 hours ago
I need help to figure out exact flow designer steps for the following requirement
Catalog item variable : Start_date = 26th Dec
need to make an api call in flow 3 days before the above start date, means it should make api call on 26-3 = 23rd Dec 2025
current date is as per system-- ex: current date is 16th Dec 2025
can someone help me with exact implementation steps in the flow
Appreciate your help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
9 hours ago
Hi @Sachin Gavhane ,
you can try this way in flow designer.
Please use below 3 steps.
1.First you have to use Get catalog Variables in the flow designer and select date variable
2. Create Custom action to subtraction of the date of logic here; call this action in flow[ input of this is RITM record]
3.Use Wait for the Condition in Flow Designer with relative duration, now you will have the option to select Date, variable using the data picker from action which in previous steps action output.
flow will be look like below
after that add your logic to trigger the API
If this information proves useful, kindly mark it as helpful or accepted solution.
Thanks,
BK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
8 hours ago
You can do this
-> create a flow variable of type Date/time and use "Set Flow Variables" flow logic and store 3 days subtracted from your date/time variable value
var dateValue = new GlideDateTime(fd_data.trigger.request_item.variables.start_date);
dateValue.addDaysUTC(-3);
return dateValue.getValue();
-> then use "Wait for a duration of time" flow logic and it will wait till that date value in flow variable
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
7 hours ago
You can add a new variable in your flow with the type as Date.
The best way to do this without scripting is to make use of function in the flow designer.
You can thus use this updated variable less than 3 days from your selected date and add a wait for duration thereby.
But please note that if your date selection is a long future date like a month or a year from now. The flow will still keep waiting till that time and may cause performance issues. So, it depends on your use case.
If my response helped you, kindly mark it as helpful and accept the solution.
Regards,
Nayan