0

使用 Microsoft Graph 创建了一个事件:

{
  "subject": "TEST",
  "body": {
    "contentType": "HTML",
    "content": "test event respond"
  },
  "start": {
    "dateTime": "2019-05-22T00:00:00",
    "timeZone": "Asia/Kolkata"
  },
  "end": {
    "dateTime": "2019-05-22T00:00:00",
    "timeZone": "Asia/Kolkata"
  },
  "location": { "displayName": "Leena AI" },
  "attendees": [
    {
      "emailAddress": {
        "address": "sachin@live.com",
        "name": "Sachin Goel"
      },
      "type": "optional"
    }
  ],
  "isReminderOn": false,
  "reminderMinutesBeforeStart": 15
}

如果我尝试接受来自sachin@live.com用户的事件,则会引发错误:

{
  "error": {
    "code": "ErrorItemNotFound",
    "message": "The specified object was not found in the store.",
    "innerError": {
      "request-id": "485528b0-dbbe-42f5-80c0-5fc91477fc31",
      "date": "2019-04-30T07:11:58"
    }
  }
}

样品要求:

https://graph.microsoft.com/v1.0/me/events/{eventId}/accept
{
  "comment" : "respond from api"
}

结果是,NotFoundError但这适用于 UI。我尝试了不同的解决方案(更新权限、主日历)但没有任何效果

此流程在 API 级别是否有任何限制?

4

1 回答 1

0

Event您在邮箱中创建的事件 ID不会与邮箱中的事件 ID 相同sachin@live.com

您需要找到带有sachin@live.com邮箱的消息,然后接受ID。

于 2019-11-08T21:58:36.460 回答