Best Practices – EWS is not generating ATTENDEE section for iCal/MIME/VCALENDAR pulled from a meeting.

This is expected behavior. Per MSDN: Programmatically reestablishing meeting organizer/attendee relationships directly on the appointments is not supported. Calendar POST items do not have attendees per RFC and that’s what is being generated.  What would go into an ATTENDEE section of iCal is a relational point in time thing.  There is an ongoing relationship between a meeting organizer and its attendees…

0

Howto: Add a body part to a message using CDOSYS.

The sample below shows how to add an additional body part to a message using cdosys.  This example demonstrates adding a “text/calendar” (vcalendar) body part, however it should be possible to use this to add “text/plain”, “text/html” and other types.  In the sample, “this.VCalendarText” holds the text to be written to the body part (in…

0

Howto: Add a body part using System.Net.Mail

The sample below shows how to add an additional body part to a message using System.Net.Mail.  This example demonstrates adding a “text/calendar” (vcalendar) body part, however it should be possible to use this to add “text/plain”, “text/html” and other types.  In the sample, “this.VCalendarText” holds the text to be written to the body part (in…

0

Howto: CDOSYS/C# Sending an ICS file

Todo:1) Open an appointment in Outlook.    Save to file as an .ICS file.2) Create a C# project and add the code below.3) Do the TODO sections. ‘TODO: Add a refernce to CDOSYS using System.IO;private void btnSendUsingIcs_Click(object sender, System.EventArgs e){ string sFrom = “me@mycompany.com“;      //  TODO: Change string sTo = “me@mycompany.com“;  //  TODO: Change string sSubject = “This is…

1

Exchange Protocol Documentation

Microsoft released preliminary protocol documentation for Exchange 2007 (as well as Microsoft Office 2007 and SharePoint Server) as part of Microsoft’s Interoperability Principles. The Exchange protocols are now publicly available on the Open Protocol Specifications section of MSDN in preliminary form for developers to review and provide feedback.  You can read more about the announcement…

0

Exchange Protocol Documentation

Microsoft released preliminary protocol documentation for Exchange 2007 (as well as Microsoft Office 2007 and SharePoint Server) as part of Microsoft’s Interoperability Principles. The Exchange protocols are now publicly available on the Open Protocol Specifications section of MSDN in preliminary form for developers to review and provide feedback.  You can read more about the announcement…

0

How do I work with Tasks using WebDAV.

WebDAV was not designed for working with outlook specific items such as Tasks and is not supported.  To work with tasks, you will to reverse-engineer the solution and in order to construct the proper XML to be used for a PROPPATCH/PROPFIND.  Tasks are supported to be worked with using Outlook Object Model (OOM) and Exchange…

2

How do I cancel an appointment with WebDAV?

Unfortunately, there is no facility to cancel a meeting via WebDAV.  You may be able to delete an appointment directly from a calendar if there are no attendees. A meeting is pretty much an appointment with attendees.   If you have an appointment with attendees (i.e. it’s a meeting), you cannot just delete it and expect…

1

Howto: Get the MIME of an item from a mailbox.

This VBSript sample uses WebDAV to read the mime of a message item and write it to disk. dim sHREFdim sUserName  dim sPassword  dim sResponse  dim HttpWebRequest dim sHREFdim sUserName  dim sPassword  dim sResponse  dim HttpWebRequest sHREF = “http://myserver/exchange/Administrator/Inbox/testabcd.EML”  ‘ TODO: change as neededsUserName = “Administrator”    ‘ TODO: change – needed for Basic AuthenticationsPassword =…

3

Building VCALENDAR content without an Microsoft API is not supported by MS.

While Microsoft products follow many RFC guidelines for VCALENDAR/iCAL, it does not mean that they support development of VCALENDAR/iCAL directly.  Microsoft has APIs which can build and read such content.  Working with those APIs is supported; however working with VCALENDAR/iCAL text programmatically is not supported. This means if you build a message via code (not…

5