The problem is that I have already worked around this problem and it is not possible to reproduce this problem in my example. I will create another example and send it. Sorry for the delay.
AZURE Logic Apps Expression with a variable property
I have a case where I need to refer to a value in JSON
body('Parse_JSON_product')['values']['Media_Pictrue_Main_1'][0]['_links']['download']['href'].
I do this with an expression that I assign to a variable. However, I have a problem because ['Media_Pictrue_Main_1']
can have different values, e.g. ['Media_Pictrue_Main_2'], ['Media_Photo_Main_1'], ['360Photo'].
How to insert a variable into an expression? I tried this:
body('Parse_JSON_product')['values']['@{body('Parse_JSON_2')?['media']}'][0]['_links']['download']['href']
,
but I get an error expression when I try to save.
I tried the compose element and then using it in the expression for the variable, but that didn't help either.