new task should get created based on previous task variable.

wefw
Tera Contributor

I'm working with Flow Designer to create tasks in ServiceNow, and I have a scenario where we use a variable with Yes/No options (but we don't display this variable in the catalog item view).

Here's the flow:

  1. A Service Catalog item is triggered, and a task is created.
  2. in that task the variable (Yes/No) is updated by the fulfiller or user after the task is created.
  3. The goal is that when the Yes/No variable is updated with Yes and saved on the sc_task form, a new task should be created.

I tried to set up a condition in Flow Designer that checks for changes in the Yes/No variable after the first task creation. However, the flow is not waiting for this condition to trigger as expected. The flow seems to proceed without checking this condition before the task is closed.

After the task is closed, the condition works as expected, but before closure, it doesn't wait for the Yes/No variable change. Is there a way to get the flow to wait for the condition before the task is closed, so that a new task can be created when the variable is changed?

8 REPLIES 8

Rohit  Singh
Mega Sage

Hi @wefw ,

 

Variables are at Catalog level then it's shown at Task level

Put a if condition then select variable = yes

Then create a action (Create Catalog Task)

 

If my response helped, please mark it helpful and accept the solution so that it benefits future readers.

 

Regards,
Rohit

 

 

wefw
Tera Contributor

It's not working. Before we entering the values it is checking the condition making false and moving to next step

Hi @wefw 

 

Please check if there is any wait for condition by which it is not going to if Condition.

 

If my response helped, please mark it helpful and accept the solution so that it benefits future readers.

 

Regards,
Rohit

wefw
Tera Contributor

we have a wait condition but these condition checks whether the task is closed. But before the wait for the condition i have given if condition to check the variable yes/no. but user before entering the value in the variable flow checking the if condition and making false and moved to next step