Hi,
I am attempting to set a variable by referring to an element inside a json array.
The array element has dashes (-) in its name.
This fails:
@array([activity('Get Item Count').output.ADFWebActivityResponseHeaders.X-Total-Count])
This succeeds:
@array([activity('Get Item Count').output.ADFWebActivityResponseHeaders.ServerName])
Does anybody know how to escape the dashes?
I have tried all sorts of combinations using \ / , ' " to no avail.
The error I get is:
{
"code":"BadRequest",
"message":"ErrorCode=InvalidTemplate,
ErrorMessage=Unable to parse expression 'array([activity('Get Item Count').output.ADFWebActivityResponseHeaders.X-Total-Count])'",
"target":"XXXXX",
"details":null,
"error":null
}