如何解决当邮件ID包含斜杠时,PowerApps Office365Outlook.GetEmail不起作用
我正在使用PowerApps应用程序,该应用程序通过URL从Outlook电子邮件中接收到消息ID,并将其值加载到该应用程序中,除了消息ID包含斜杠之外,其他所有操作都有效。
例如,如果消息ID以这种方式结束,则它起作用:
...9XyAAAL+Zx0NAAA=
但是如果这样结束,那就不会了
...9XyAAAL/maTvAAA=
我收到此错误:
Office365Outlook.GetEmail failed: { "error": { "code": 404,"source": "msmanaged-na.azure-apim.net","clientRequestId": "***","message": "The response is not in a JSON format.","innerError": "The resource you are looking for has been removed,had its name changed,or is temporarily unavailable." } }
我认为这一定是因为URL中显示了/
,这是唯一的区别,我想它会尝试将其解析为路径而不是值。
有什么办法可以解决这个问题?也许以某种方式对其进行编码,以便正确地对其进行解释?
修改:
我尝试在PowerApps中将EncodeUrl
函数用于接收的参数,但也收到此错误:
Office365Outlook.GetEmail failed: { "status": 400,"message": "Resource not found for the segment 'maTvAAA'.\r\nclientRequestId: ***\r\nserviceRequestId: ***","error": { "message": "Resource not found for the segment 'maTvAAA'.","code": "RequestBroker--ParseUri","originalMessage": "Resource not found for the segment 'maTvAAA'." },"source": "office365-eus.azconn-eus-01.p.azurewebsites.net" }
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。