We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

flow designer

vikaskumarc
Tera Contributor

I am not able to understand in this situation how would i update my record like once catalog task is closed RITM and REQ should complete. but here i am unable to find where to update this.  

1 ACCEPTED SOLUTION

VanitaV
Kilo Contributor

A common approach is:

  1. Use Create Record action to create the Catalog Task (sc_task).

  2. After that step, add a Wait for Condition action.

  3. Configure the condition to wait until the Catalog Task State = Closed Complete (or any closed state you require).

  4. Once the condition is met, add an Update Record action to update the Request (REQ) or Requested Item (RITM) state to Closed Complete.

Alternatively, if there are multiple catalog tasks, you should add a step to check that all tasks related to the RITM are closed (for example using Look Up Records on sc_task where RITM = current RITM and State is not Closed). If no records are returned, then update the REQ to Closed Complete.

So the check should be placed after the Catalog Task creation step in the Flow, using a Wait for Condition or Lookup Records logic.

View solution in original post

5 REPLIES 5

VanitaV
Kilo Contributor

A common approach is:

  1. Use Create Record action to create the Catalog Task (sc_task).

  2. After that step, add a Wait for Condition action.

  3. Configure the condition to wait until the Catalog Task State = Closed Complete (or any closed state you require).

  4. Once the condition is met, add an Update Record action to update the Request (REQ) or Requested Item (RITM) state to Closed Complete.

Alternatively, if there are multiple catalog tasks, you should add a step to check that all tasks related to the RITM are closed (for example using Look Up Records on sc_task where RITM = current RITM and State is not Closed). If no records are returned, then update the REQ to Closed Complete.

So the check should be placed after the Catalog Task creation step in the Flow, using a Wait for Condition or Lookup Records logic.