简体   繁体   English

带特殊字符的 ADF web 活动 output 参数

[英]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.

相关问题 “执行 output 的长度超出限制”ADF Web 活动中的错误 - “The length of execution output is over limit” Error in ADF Web Activity web 活动 ADF 中的参数化授权凭证 - Parameterized authorization credentials in web activity ADF 集合中的引号和特殊字符问题以及 ADF 中的 append 变量 - Quotes and special character issue in set and append variable in ADF 无法将查找活动输出映射到 ADF 中的复制活动映射 - Unable to map lookup activity output to Copy Activity Mapping in ADF 使用活动名称使用配置文件将参数传递到Azure ADF管道 - Passing parameter to azure adf pipelines using config file by activity name 根据触发器将参数传递给 Azure 数据工厂-ADF 活动 - Pass parameter to Azure Data Factory-ADF activity based on trigger 使用ADF v2将“ GET MetaData”活动输出到SQL表 - 'GET MetaData' Activity output to SQL table using ADF v2 ADF - output 活动文件中的“错误”元素 - 如果存在,如何读取和评估它 - ADF - "errors" element in output activity file - how is it read and evaluated if exists 如何从 ADF .NET 自定义活动中获取 output 值 - How to output a value from ADF .NET Custom Activity 使用ADF Web活动启动/停止Azure Function应用 - Start/Stop Azure Function App using ADF Web Activity
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM