0

我们有一个 O365 应用程序(使用 OAuth2 凭证流)并使用 Graph API 读写 Exchange 日历。适用于多个租户的在线委托人。

最近(在新租户上)我们尝试使用此处描述的设置访问本地日历。

经过一些修改(例如删除 $select)读取工作,但是每当我们尝试编写事件时,我们都会收到以下错误:

{
  "error": {
    "code": "RequestBodyRead",
    "message": "The property 'start' does not exist on type 'Microsoft.OutlookServices.Event'. Make sure to only use property names that are defined by the type or mark the type as open type. REST APIs for this mailbox are currently in preview. You can find more information about the preview REST APIs at https://dev.outlook.com/.",
    "innerError": {
      "date": "2021-05-25T12:51:52",
      "request-id": "e7bc74d6-d482-4d12-83aa-edec47765158",
      "client-request-id": "e7bc74d6-d482-4d12-83aa-edec47765158"
    }
  }
}

用于故障排除的标题:

{
  'request-id': 'fdc5e7ee-3227-44c6-93c0-e23f5fa52432',
  'client-request-id': 'fdc5e7ee-3227-44c6-93c0-e23f5fa52432',
  'x-ms-ags-diagnostic': '{"ServerInfo":{"DataCenter":"West Europe","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"AM4PEPF0000DE1F"}}'
}

该帖子的正文如下所示:

{
  Start: {
    DateTime: "2021-05-25T10:00:00.000Z",
    TimeZone: 'UTC'
  },
  End: {
    DateTime: "2021-05-25T10:30:00.000Z",
    TimeZone: 'UTC'
  },
  Subject: 'Test Booking'
}

设置 @odata.type="microsoft.graph.event" 会产生不同的错误:

A type named 'microsoft.graph.event' could not be resolved by the model. When a model is available, each type name must resolve to a valid type.

似乎有其他人报告相同的错误,但没有解决方案:

1

二氧化硫

Github msgraph-sdk-dotnet

微软

微软

4

0 回答 0