Yan*_*ans 3 azure azure-logic-apps microsoft-graph
我正在使用Azure Logic应用程序通过操作调出Microsoft Graph API HTTP - HTTP。对于此API,我需要使用以下主体执行POST请求:
{
"@odata.id": "<guid>"
}
Run Code Online (Sandbox Code Playgroud)
当我尝试保存逻辑应用程序时,此错误显示:
Failed to save logic app <redacted>. The template validation failed: 'The template action '<redacted>' at line '1' and column '144589' is not valid: "Unable to parse template language expression 'odata.id': expected token 'LeftParenthesis' and actual 'Dot'.".'.
Run Code Online (Sandbox Code Playgroud)
如何在JSON有效负载中使用此属性?
从这篇文章:
如果您有一个以@字符开头的文字字符串,请在@字符前面加上另一个@字符作为转义字符:@@
因此,在您的情况下,这应该可行:
{
"@@odata.id": "your value here"
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
963 次 |
| 最近记录: |