[英]ADF web activity output parameter with special character
I'm using ADF Web activity to submit a GET request to the external API.我正在使用 ADF Web 活动向外部 API 提交 GET 请求。
From the web activity (2) I'm getting the following output:从 web 活动 (2) 我得到以下 output:
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.在我看来,由于我试图提取的属性名称中的特殊字符(“-”),ADF 无法解析此表达式。
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"?您知道我应该如何编写表达式来提取“Total-Count”的值吗?
According to this post ADF retrieves value from field with dash from json file this could work for you, too.根据这篇文章, ADF 从 json 文件中的破折号字段中检索值,这也可以为您工作。 The expression in your case could like this:您的情况下的表达式可能是这样的:
@activity('Web1').output.ADFWebActivityResponseHeaders['total-count']
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.