Flow Design
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2023 01:35 AM
Hi @Ankur Bawiskar ,
I am working on a flow design and creating a catalog task in the flow design itself.
There is a date time field (for example 'X') on the catalog item.
Requirement is that task what I am creating on the flow design itself should be triggered before 45 days of that date time field's (X) value.
If that date time field value is 1st of December, then that task will be created on 16th October.
I am not able to achieve it through flow design. Could you please help me out as it is so urgent.
Thanks&Regards,
Abhisek Chattaraj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2023 06:38 PM
What have you tried?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2023 08:42 PM
Hi,
You can use some logic like below.
You need to use the action "Wait for a duration of time" under flow logic and change the duration type to relative duration.
So here I have used 1 sec after the start date. similarly you can update your conditions. I would say before step 2 use a flow variable to calculate the date (45 days before the date) lets call it as Z and then use the same condition like I have updated, 1 sec after the Z( which will have the 45 days before date)
Please accept solution or helpful, if you find it helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2023 11:50 PM
Hi @Sruthi17
Thanks for your suggestion.
Could you please let me know how can I store the date difference of 45 days in Z variable?
Thanks&Regards,
Abhisek Chattaraj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2023 09:18 PM
Unless you shared what you tried we won't be able to help.
You can use Wait for duration activity.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader