Azure 逻辑应用程序 HTTP Post 使用动态变量构建 JSON
Azure Logic App HTTP Post build JSON with Dynamic Variables
我不知道如何为 HTTP Post 构建 JSON:
也就是说,这在 [somevariablehere] 的地方不起作用。如何手动连接我想要的 post 以及一些动态变量?
{
"color": "green",
"message": "(awesome) [somevariablehere] ",
"notify": false,
"message_format": "text"
}
查看逻辑应用程序定义语言的文档:
https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language
您可以使用 concat
函数来连接字符串,例如
{
"color": "green",
"message": "@concat('awesome', actionBody('otherAction').someProperty)",
"notify": false,
"message_format": "text"
}
我不知道如何为 HTTP Post 构建 JSON:
也就是说,这在 [somevariablehere] 的地方不起作用。如何手动连接我想要的 post 以及一些动态变量?
{
"color": "green",
"message": "(awesome) [somevariablehere] ",
"notify": false,
"message_format": "text"
}
查看逻辑应用程序定义语言的文档: https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language
您可以使用 concat
函数来连接字符串,例如
{
"color": "green",
"message": "@concat('awesome', actionBody('otherAction').someProperty)",
"notify": false,
"message_format": "text"
}