我们最近切换到在Outlook加载项中使用REST API执行loadAsyncProperties [1]和saveAsync [2]操作,并且遇到了以下行为:
第一次打开邮件(随机发生)时,restUrl为空
EWS REST端点偶尔返回以下错误:
{
"error": {
"code": "ErrorAccessDenied",
"message": "The api you are trying to access does not support item scoped OAuth."
}
}
{
"error": {
"code": "ErrorAccessDenied",
"message": "Access is denied. Check credentials and try again."
}
}
{
"error": {
"code": "ErrorItemNotFound",
"message": "The specified object was not found in the store., The process failed to get the correct properties."
}
}
再次执行相同的操作时,将返回预期的响应。
为什么这会偶尔发生?
GET https://outlook.office365.com/api/v2.0/me/messages('<message>')?$expand=SingleValueExtendedProperties($filter=PropertyId eq 'String {00020329-0000-0000-C000-000000000046} Name <>')
我们无法检索自定义属性。