Adding an entry to shared calender

-- -- 872 Reputation points
2021-06-10T14:25:17.78+00:00

Hi

Windows 2016 Standard + Exchange 2016 Standard on-premises.

We have a user created shared calendar in Outlook. How can I add an entry into it using c#?

Is EWS the way to go? How can I get the reference to the user define calendar to add entry to it?

Thanks

Regards

Exchange Server Development
Exchange Server Development
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Development: The process of researching, productizing, and refining new or existing technologies.
507 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Glen Scales 4,431 Reputation points
    2021-06-10T23:44:47.493+00:00

    EWS will work fine for that, you just use the delegate code via the FolderId overload https://learn.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-access-a-calendar-as-a-delegate-by-using-ews-in-exchange

    eg

     FindItemsResults<Item> results = service.FindItems(  
            new FolderId(WellKnownFolderName.Calendar,   
                "shared@contoso.com"),   
                filter,   
                view);  
    
    0 comments No comments