Flow question

samadam
Kilo Sage

I have a requirement to generate some tasks and notifications when the date difference s 120, 90 and 30 from today's date. What is the best way to do it. I am trying to do it in a flow but not sure if this is the right way. I am trying to save in a field the difference between the dates and i will have to create scheduled job for that. But in the flow how can I accomplish this on creating tasks and notifications? I am triggering the flow on create of the case and create first task then do I use Wait for condition and look for the difference?

2 REPLIES 2

Anand Kumar P
Giga Patron

hi @samadam ,

Use the relative duration in flow:

  • Relative Duration: Wait for a specific time period from a selected Duration data pill or date/time value, such as 5 minutes after the flow start.

https://www.servicenow.com/community/servicenow-ai-platform-articles/flow-designer-making-the-flow-w...

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0958902

 

If my response helped, please mark it as the accepted solution and give a thumbs up👍.
Thanks,
Anand

Rafael Batistot
Kilo Patron

Hi @samadam 

May you consider this flow structure  

  • Trigger: When a Case is created (or updated)

  • Condition: Check if target_date is not empty

  • Wait Until (Relative Date):

    • Wait until target_date - 120 days

    • Wait until target_date - 90 days

    • Wait until target_date - 30 days

  • After each wait:

    • Create Task

    • Send Notification

If you found this response helpful, please mark it as Helpful. If it fully answered your question, consider marking it as Correct. Doing so helps other users find accurate and useful information more easily.