none
How to get Calender ID ? RRS feed

All replies

  • Hi Sagar Worriors,

    You could use the Microsoft Graph API to get the ID of the calendar . Some steps for your reference.

    First, useing the GET method below to get calendar list:

    https://yourtenantName.microsoft.com/v1.0/me/calendars

    Then use outlook add-in to get the calendar details:

    1. Get a reference to the main calendar folder by using the following code:

    Outlook.MAPIFolder calendar = Application.Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalendar);

    1. Enumerate the Folders collection of calendar .

    1. From the MAPIFolder, enumerate all Items as Outlook.AppointmentItem like what you have done.

    Finally, show the returned result as html.

    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread.


    Thursday, September 6, 2018 11:52 AM
  • Have you tried the steps above

    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread.

    Monday, September 10, 2018 2:17 AM