我正在使用Azure Logic应用程序通过操作调出Microsoft Graph API HTTP - HTTP
。对于此API,我需要使用以下主体执行POST请求:
{
"@odata.id": "<guid>"
}
当我尝试保存逻辑应用程序时,此错误显示:
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'.".'.
如何在JSON有效负载中使用此属性?
从这篇文章:
如果您有一个以@字符开头的文字字符串,请在@字符前面加上另一个@字符作为转义字符:@@
因此,在您的情况下,这应该可以工作:
{
"@@odata.id": "your value here"
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句