Flow Designer - Create Catalog Task wehen a Date Variable Date is reached

Emine
Tera Contributor

Hi everyone, 

I am working on a Flow for a Catalog Item.

The Catalog Item contains a date variable.

My requirement is:

-if the Date variable is empty, create catalog task

-if the Date variable contains a value, create catalog task only if the specified date is reached

Can someone help me?

Thank you

2 REPLIES 2

Mariam_Ahmed
Tera Guru

Hi @Emine , 

A possible approach would be:

  1. Trigger the flow when the Requested Item is created.
  2. Add an If condition to check if the date variable is empty.
  3. If the date variable is empty, create the Catalog Task immediately.
  4. If the date variable contains a value, add a Wait Until action and configure it to wait until the specified date is reached.
  5. After the wait step, create the Catalog Task.

The flow logic would be:

  • Date variable is empty >>> Create Catalog Task
  • Date variable has a value>>> Wait until the specified date>>> Create Catalog Task

Also, consider adding an additional check in case the entered date is already in the past. In that scenario, you may want to create the Catalog Task immediately instead of waiting.

If you found this response useful, please mark it as Helpful and accept it as the Solution to help others with similar questions.


Best regards,

Mariam Ahmed.

Tanushree Maiti
Tera Patron

Hi @Emine 

 

Refer:

 

https://www.youtube.com/watch?v=jKO_VkLIZ6Q

https://www.servicenow.com/community/developer-forum/create-a-task-in-flow-designer-from-date-variab...

https://www.servicenow.com/community/service-management-forum/wait-for-a-date-to-start-tasks-using-f...

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti
Sometimes you want to check if a date field is empty in flow designer, however the condition builder doesn't give you that option. Maik Skaddow provides a workaround in the link below: create a flow variable and populate it with the date field. You can then check if the flow variable is empty ...