gpt4 book ai didi

json - 使用动态变量的 Azure 逻辑应用 HTTP 后构建 JSON

转载 作者:行者123 更新时间:2023-12-02 06:32:41 24 4
gpt4 key购买 nike

我不知道如何为 HTTP Post 构建 JSON:

即,这在[somevariablehere]处不起作用。如何手动将我想要发布的内容与一些动态变量连接起来?

{
"color": "green",
"message": "(awesome) [somevariablehere] ",
"notify": false,
"message_format": "text"
}

最佳答案

查看逻辑应用定义语言的文档: https://learn.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"
}

关于json - 使用动态变量的 Azure 逻辑应用 HTTP 后构建 JSON,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44189318/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com