none
Using EWS to set a CalendarFolder's color RRS feed

  • Question

  • In Outlook and the https://exchange-server/OWA/# methods of accessing an Exchange Server 2007 calendar, you can set the calendar's color.

    I'm using the following EWS code to create the calendar:

        Dim calFolder As New CalendarFolder(exchangeService)
        calFolder.DisplayName = calendarDisplayName
        calFolder.Save(WellKnownFolderName.Calendar)

    and it works fine creating a sub-calendar with the name in calendarDisplayName.

    Is there any way to set that newly created calendar's color?

     

     

     

     

    Thursday, September 29, 2011 10:48 PM

All replies

  • You can't set this using EWS in 2007 what controls this is a Extended Mapi property 0x68530003 on the WPM.Microsoft.WunderBar.Link Item for the calendar which is stored under the NON_IPM_Subtree Folder Common Views. Although you can get to this folder in 2007 using EWS the Items themselves are stored in the Associated Items Collection (FAI Items) of that folder which you cant be access via EWS in 2007(you can do it in 2010). On 2007 you would need to use another API such as WebDAV or Mapi. The Navigation shortcuts themselves are documented in http://msdn.microsoft.com/en-us/library/cc463899%28v=EXCHG.80%29.aspx

    Cheers
    Glen

    Friday, September 30, 2011 3:31 AM