我当前正在设置一个管道,需要从 JSON 响应(Web 事件输出)中提取值。此输出的字段名称中有一个句点。我如何使用这个值?
简化后的输出如下:
{
"aud": "https://login.----.com/auth/authentication/resources",
"abc.organisationUserCode": "----",
"abc.clusterUrl": "https://url-to-use.com",
}
如果我使用 @activity('GetclusterUrl').output.abc.clusterUrl
我收到以下错误:
The expression 'activity('GetclusterUrl').output.abc.clusterUrl' cannot be evaluated because property 'abc' doesn't exist
有没有办法例如使用转义字符来进一步在管道中使用该值?
最佳答案
请尝试这个表达式:
@activity('GetclusterUrl').output['abc.organisationUserCode']
关于azure - 如何在 Azure 数据工厂中的字段名 JSON 中使用带有句点的事件输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64555730/