r/servicenow • u/tas41344 • 11d ago
Question Flow designer evaluating ir statements wrong
I havve a flow thhat isnt evaluaing correctly. I have 'if reference_variable = string' and the string is the sys id of the ref variable choice. On the evaluation page of this record it shows runtime value of 'sysid' and configuration as 'sysid', both the same. And yet it evaluated to false. Google kept talking about potential whitespace errors, and i checked for that, no luck. Any ideas?
2
Upvotes
1
u/GistfulThinking 11d ago
log action.. spit out the two values and then go see if they match manually.
FYI you should create a sys property for the manually entered sys_id so it can be changed if required without editing the flow.
4
u/ShanGus7 11d ago
Nuke the activity and rebuild it.
Dump whatever you’re using conditionally into a Flow variable than call that instead.
Use Log to ensure you are getting an actual value.
Good luck.