locked
EWS and Saving to a Public Folder Calendar RRS feed

  • Question

  • User1225369314 posted

    Hi, I have some vb code which I have created to add a calendar item to somebodys calendar.

    But how can I save it to a public folder?

    This is the code I am using to save to somebodies calendar.

    Thanks v much

            Dim service As New ExchangeService(ExchangeVersion.Exchange2010_SP1)
    
    
            service.Credentials = New WebCredentials(userEmail, userPassword)
            service.AutodiscoverUrl("administrator@mydomain.co.uk")
    
            service.ImpersonatedUserId = New ImpersonatedUserId(ConnectingIdType.SmtpAddress, "administrator@mydomain.co.uk")
    
            
            Dim appointment As New Appointment(service)
            appointment.Subject = "Calendar booking via WebService"
            appointment.Body = "this is a test"
            appointment.Start = New DateTime(2014, 1, 1, 21, 0, 0)
            appointment.[End] = New DateTime(2014, 1, 1, 22, 0, 0)
    
       
            appointment.Save()

    Monday, April 7, 2014 10:50 AM

Answers