If one task close incomplete out of 2 0r 3 tasks the RITM need to closed incomplete

Siva82
Tera Expert

Hi Team,

 

I have created a workflow. In the flow, I have created tasks using the "For Each" loop, which will create multiple tasks from for each action. If all tasks are closed completely, I need to close the RITM as complete. If any task is closed incompletely, I need to close the RITM as incomplete.

 

To achieve this, I have used lookup records with the conditions shown in the screenshot below.

Siva82_0-1742389015087.png

it getting 0 records. so if condition not satisfied.

Siva82_1-1742389119201.png

 

Can you please help me on this.

Thank you in advance.

Siva

 

 

2 REPLIES 2

Shivalika
Mega Sage

Hello @Siva82 

 

You don't need to do "Look up Records" because as per your requirement you need to change it to closed incomplete even if one of them state is changed to closed incomplete. 

 

In that case - just use Look Up Record. If it returns even one record then fine. Else if it throws error it means there are no records. 

 

This you can check using Action status. 

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY

Dhana3
Kilo Sage

Hi @Siva82 ,

 

So that is correct right? If condition is not satisfied you'll get 0 records. You can use an else statement to update the RITM state to complete in that case.