Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Trying to Set the Request State to completed once the task has been closed using Flow Designer

Georges_Younes
Tera Contributor

Hello,

I am trying to achieve the following approval flow

Step 1: Once my books item catalog is submitted, approval will be sent to the manager of the requester.

Step 2: Once the manager approves, a task will be created for the Group 'Library admin'.

Step 3: Once the task is closed, the state of the requested item should be updated to closed. 

Step 4: End Flow

 

Step 1 and 2 are working normally, but Step 3 seems to fail. Once i close the created task, the requested item state is not updated. I'd appreciate any help. Thanks

Screenshot (82).pngScreenshot (83).pngScreenshot (84).png

 

1 REPLY 1

Voona Rohila
Mega Patron
Mega Patron

Hi @Georges_Younes 

In Step 4 for Create task, Make sure you check the 'wait' checkbox.

 

use 'create catalog task' action if you are creating task in sc_task table.

 

VoonaRohila_1-1708878033168.png

 

 


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP