Flow Designer - Need help on "for each" condition

Nandini DM
Tera Contributor

Hi ,

 

I have the requirement to check for Multi row variable should be checked if any row contains * in one of the row,
If contains , it should trigger approval and task , if not only task should be created.
I have a issue that task is getting creating on each iteration ,which should not be the case. 
After checking all the records from the row , it should decide if it has "*" in any row and then trigger approval and task.

 

NandiniDM_0-1733756061064.pngNandiniDM_1-1733756092704.png

 

Please Help!

1 REPLY 1

AJ M
Mega Sage

You have the task contained within the For Each loop. You should create a Flow Variable that captures whether or not you need to create the task so when the loop ends, you can do If task is needed > Create Catalog Task AFTER the loop.