locked
Sharing a calendar using EWS and PHP-EWS without sending share invitation RRS feed

  • Question

  • We are currently working on a system to create calendars and appointments automatically using EWS and PHP-EWS. The calendar is created in the owner's mailbox, the permissions are set for every user able to access this shared calendar.

    Now I was wondering if it was possible to add the shared calendar to every other users able to access this calendar automatically. We would like to do it without sending the email asking to share calendar.

    Thanks for your help, it is really appreciated.

    Tuesday, June 11, 2013 5:55 PM

All replies

  • There are no setting or Operations in EWS (or Exchange) that will do this automatically. When you use a Sharing request Outlook\OWA creates a Navigation shortcut in the users Mailbox which are documented in http://msdn.microsoft.com/en-us/library/ee202589(v=exchg.80).aspx. In theory you should be able to create such a shortcut in each user mailbox with EWS setting the specific extended properties as documented.

    Cheers
    Glen

    Wednesday, June 12, 2013 6:25 AM
  • Hi Glen,

    thanks for the link, we've read the documentation and we would like to dig into it but there is a gap we don't understand. The documentation you sent talks about how to format a ROP input buffer to send a request to the server and the way the server will reply, etc, but it's not clear to me how we send the request to the server.

    Once the ROP input buffer is created correctly, do we send it using EWS of some other way ? Do you know of a simple example showing how to send a simple ROP buffer to the server ? From there, we'll dig into the documentation.

    Thanks a lot for your help

    Wednesday, June 12, 2013 10:54 PM
  • The open specification documentation are mostly high level technical documentation that allows you to build your own Mail client using the Exchange wire protocols see http://channel9.msdn.com/Events/Open-Specifications-Plugfests/Windows-Identity-and-Exchange-Protocols-Plugfest-2012?sort=rating&direction=asc&t%5B0%5D=identity for more details.

    From a EWS perspective this documentation is useful because it tells you what are the properties you need to set on a particular item and also how some binary Extended Property formats work for whatever property you might be dealing with. In EWS to create one of these items you would use the CreateItem Operation and set the extended properties outlined.  My suggestion would be that you look at some of the existing Nav ShortCut Items in a Mailbox using a Mapi Editor life MFCMapi or OutlookSpy. This will allow you to see what actual properties get set vs what's documented as sometimes the documentation isn't complete.

    Cheers
    Glen

    Thursday, June 13, 2013 7:00 AM
  • Thanks Glen,

    this really clears things up. We will dig into it, it seems very promising.

    Regards

    Thursday, June 13, 2013 11:44 AM