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.

if condition is not working as expected in flow designer

learn nv
Tera Contributor

Hi All,

I have a 3 lookups in 'Do the following until' flow logic step. It is not needed to do 2nd and 3rd lookup if 1st lookup not returns any record. So, I just kept a if condition, which checks for 1st lookup success and then runs the 2nd and 3rd lookup. Unfortunately, if condition is not getting evaluated to true if 1st lookup finds a record after couple of iterations(not in first iteration).My assumption is, on first iteration if condition evaluated to false and it is not able to identify next iterations results.

How can I solve this problem? 

1 REPLY 1

SunilKumar_P
Giga Sage

Hi @learn nv, You can try somthing as below.

 

SunilKumar_P_0-1710347346160.png

 

Regards,

Suni