通过EWS API访问公共/共享日历并创建约会

时间:2014-12-04 15:09:54

标签: exchangewebservices ews-managed-api ewsjavaapi

如何使用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.

0 个答案:

没有答案