首页 > 解决方案 > “整数”类型的值不支持属性选择

问题描述

我想发送这个动态内容:

content:@concat(formatDateTime(adddays(utcnow(),-1),'mm'),formatDateTime(adddays(utcnow(),-1),'dd'))

从 Azure 数据工厂中的 Web 活动到逻辑应用。

在逻辑应用程序方面,我定义了这样一个主体: 在此处输入图像描述

在第二步中,我想提取值: 在此处输入图像描述

但是在这一步运行后,我得到了这个错误:

InvalidTemplate. Unable to process template language expressions in action 'Extract' inputs at line '1' and column '1292': 'The template language expression 'triggerBody()?['ID']' cannot be evaluated because property 'ID' cannot be selected. Property selection is not supported on values of type 'Integer'. Please see https://aka.ms/logicexpressions for usage details.'.

我怎么解决这个问题?

标签: azureazure-logic-apps

解决方案


添加

Content-type = application/json

在请求标头中。


推荐阅读