If condition not working as expected flow designer

Akhil kumar Avu
Tera Contributor

Hi Folks,

I'm facing issue with if condition in flow designer. it is verifying output from action is "doesnotexist".

if output from action(validation certificate records if certificate exist it saves output.alreadyavailable = exist if not exists output.alreadyavailable = notexist) is notexist it should evaluate to true. Please help on this if condition is sometimes evaluate to true and sometimes to false. Please help on this.

exist.PNG

7 REPLIES 7

Voona Rohila
Kilo Patron
Kilo Patron

Hi @Akhil kumar Avu 

Can you share what values are coming on 'Result' .

You mentioned the result as "notexist" but in the flow designer it is validating as "doesnotexist"


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

Hi @Voona Rohila 

Thanks for quick response.
I have mentioned it for example actual values of action output values are doesnotexist and exist.
If output returns doesnotexist if condition should evaluate to true.

 

Hi Akhil

Can You show the execution details on what's hapenning at that step, what are the values that are coming as output.

 


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

Hi @Voona Rohila 
when i test action(validatecert) action with certificate name as input it is working fine. But when i test the sub flow with inputs action(validatecert) is always returning doesnotexist. Im giving input as certificate name for action if give certificate is installed and MRD is today or yesterday it should return exist or if is retired or MRD is not today or yesterday it should return doesnotexist. But here after running sub flow it is always returning doesnotexist. If condition is working fine.

AkhilkumarAvu_1-1670230649632.png

 

AkhilkumarAvu_0-1670229461484.png

 

AkhilkumarAvu_2-1670232029862.png

AkhilkumarAvu_3-1670232062841.png

 

 

Please help on this.

Thanks,

Akhil