I've created a logic app which contains some trigger, an 'http' connector and then an 'If' condition activity. The 'http' connector returns a 'json' result say jsonObj
.
I'm able to check condition as @equal(body('HTTP')['jsonObj'].someProperty,'someValue')
but not able to do a null
check on that someProperty
value.
Below are some ways I tried which are not working.
@equal(body('HTTP')['jsonObj'].someProperty, null) --Unable to save
@equal(body('HTTP')['jsonObj']?.someProperty,'null') --Comparing with string value 'null'
You can now do:
@equals(triggerBody()['jsonObj']?['someProperty'], null)
It's valid and can be saved but if you try to switch to Basic mode you'll get an error. Can still save though.