Flow designer condition is evaluated to "True" but both True & false condition is getting executed.

Shantanu1
Tera Guru

Hi Experts!

 

I am facing a weird issue where my Flow condition checks for an output string value, which is returned from Rest API call & I am parsing the JSON to a string value.

 

The condition is getting evaluated as true but both true & false conditions are getting executed.

 

Shantanu1_0-1706620425986.png

In the above screenshot, the "If" condition is evaluated true as show below:

 

Shantanu1_1-1706620478175.png

But the "create catalog task" action is also triggered which is not supposed to trigger.

 

Then flow steps looks like this in the editor:

 

Shantanu1_2-1706620543512.png

 

 

Any assistance will be greatly appreciated.

 

Thanks,

Shantanu

1 ACCEPTED SOLUTION

Paige Duffey
ServiceNow Employee
ServiceNow Employee

You are missing an "else" statement in your flow logic. The catalog task will always be created in your flow, regardless of the outcome of your "If" statement. It should look more like this

PaigeDuffey_0-1706621096093.png

 

View solution in original post

2 REPLIES 2

Paige Duffey
ServiceNow Employee
ServiceNow Employee

You are missing an "else" statement in your flow logic. The catalog task will always be created in your flow, regardless of the outcome of your "If" statement. It should look more like this

PaigeDuffey_0-1706621096093.png

 

Thanks! It helped!