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