troubleshooting Question

Microsoft Exchange WebServices FindAppointments now return "Expected an item Id but received a folder Id." for Public Calendars

Avatar of Éric Moreau
Éric MoreauFlag for Canada asked on
ExchangeC#Visual Basic.NETMicrosoft 365
3 Comments1 Solution469 ViewsLast Modified:
I have been using the Microsoft Exchange WebServices for a few months without any issues to read the appointments from a Public Calendar in Office 365.

Since Tuesday (August 28), the same code without any modifications (the very same build) is now triggering an "Expected an item Id but received a folder Id." exception. It ran fine on Monday.

I found out that my error is happening on this specific instruction:
FindItemsResults<Appointment> lstAppointments = ((CalendarFolder) objFindFoldersCalendar.Folders[0]).FindAppointments(objCalendarView);

Is somebody is aware of anything changed in Office 365 regarding public folders (I can read regular calendar without issues).

It is mostly the same code found at https://www.emoreau.com/Entries/Articles/2018/05/A-Net-application-to-extract-appointments-from-Office-365-public-calendars.aspx
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros