kamilzet_
kamilzet_

Reputation: 192

ADF web activity output parameter with special character

I'm using ADF Web activity to submit a GET request to the external API.

enter image description here

From the web activity (2) I'm getting the following output:

enter image description here

Now, I want to assign a variable with value of the element that is marked on the screen.

Unfortunately, the following expressioin is invalid:

@activity('Web1').output.ADFWebActivityResponseHeaders.Total-Count

Is looks to me that ADF is not able to parse this expression due to special character ("-") in the name of property I'm trying to extract.

When I use a different expression to access a different parameter:

@activity('Web1').output.ADFWebActivityResponseHeaders.Status

it works.

Do you have any idea how I should write the expression to extract the value of "Total-Count" ?

Upvotes: 0

Views: 1071

Answers (1)

Fab1an
Fab1an

Reputation: 46

According to this post ADF retrieves value from field with dash from json file this could work for you, too. The expression in your case could look like this:

@activity('Web1').output.ADFWebActivityResponseHeaders['total-count']

Upvotes: 3

Related Questions