I am trying to set a variable with different message values based on the outcomes of actions in a flow. I am using this if statement in a compose action to do so:
if(equals(body('Run_HQ-0001-DHR_Execute_JAron_python_script_PAD_flow')?['Message'], null),
outputs('Capture_Error_Message'),
if(greater(length(body('Run_HQ-0001-DHR_Execute_JAron_python_script_PAD_flow')?['Message']), 0),
body('Run_HQ-0001-DHR_Execute_JAron_python_script_PAD_flow')?['Message'],
outputs('JAron_Flow_Failed_Message')))
The flow runs successfully and does not give me an issue with this syntax, however the output is always empty. Assuming each output has a value (which they do in the flow), why would the output still be blank? Is something wrong with the syntax, or would you suggest it involves one of the outputs?


Report
All responses (
Answers (