1

如何访问公共共享日历(具有所有者权限)以使用 EWS Java API 创建约会?我只能使用我的凭据在我的私人日历中创建约会:

Appointment appointment = new Appointment(service);
appointment.save();

我尝试关注https://stackoverflow.com/a/23773834/3673638并创建:

Folder myPublicFoldersRoot = Folder.bind(service, WellKnownFolderName.PublicFoldersRoot);
FolderId folderId = myPublicFoldersRoot.getId();
appointment.save(folderId);

但这导致带有错误@的 NullPointerException microsoft.exchange.webservices.data.ServiceResponseException: Meeting requests and cancellations can't be sent for calendar items located in public folders.

4

0 回答 0