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.

How to close REQ and RITM once Task is closed in flow designer

rsharma
Tera Contributor

I have a simple flow which triggers from an Inbound email.

A req record is created and then RITM and SCT task.

As there is one to one relationship, I want to close the RITM and REQ once the task is set to Close complete state.

 

But it's not working, Even when I changed the SCT task status to closed complete, RITM and REQ stays open and even the email is not sent.
flow stops after action number 3 

rsharma_1-1668050456285.png

 

rsharma_2-1668050491765.png

Execution result

rsharma_0-1668052757594.png

 

 

 

4 REPLIES 4

Sagar Pagar
Tera Patron

Hi @rsharma,

Take a look at old thread - How to close RITM and REQ from an SCTASK 

It might be helpful.

 

Thanks,

Sagar Pagar

The world works with ServiceNow

Hi @Sagar Pagar 
thanks for checking my post.

 

I am not that good in so doesn't understand the code much.

I know I am missing something really minor in the flow as my other flow with similar condition is working just fine 😞

edjhefford
Tera Contributor

Should just add Active false to your update record action on the RITM, that'll do it

Hi @edjhefford 
I tried that but it does not work.

 

Could this be related to this Wait condition in Create task section?

rsharma_0-1668142176745.png