Microsoft KB Archive/309699

= How To Retrieve Exception Information of a Recurring Appointment using WebDAV =

Article ID: 309699

Article Last Modified on 7/1/2004

-

APPLIES TO


 * Microsoft Exchange Server 2000 Service Pack 1

-



This article was previously published under Q309699



SUMMARY
This article demonstrates how to retrieve the exception information from the master appointment of a recurring appointment. You can use the GET method in Web Distributed Authoring and Versioning (WebDAV) to retrieve the MIME stream.



MORE INFORMATION
The following sample code retrieves the MIME stream and displays it in the immediate window. You can write additional code to parse the data and retrieve specific information. The exception information is not available through WebDAV as a simple property.

To use the sample code, follow these steps:  In Microsoft Visual Basic, create a new Standard EXE project. Add a button to the default form and name it Command1.  Paste the following code into the view code window: Private Sub Command1_Click 'Reference MS XMl 2.0 library to try the following sample code. Dim strMime as String Dim strURL as String

'Change the strURL below to reflect your recurring appointment. strURL=&quot;

Set xmlReq = CreateObject(&quot;Microsoft.xmlhttp&quot;) 'Change the domain name\userID and password to reflect your environment. xmlReq.Open &quot;GET&quot;, strURL, False, &quot;domainname\userid&quot;, &quot;password&quot; xmlReq.setRequestHeader &quot;Translate&quot;, &quot;f&quot; xmlReq.setRequestHeader &quot;Content-Type&quot;, &quot;text/xml&quot; xmlReq.Send

strMime = xmlReq.ResponseText Debug.Print strMime

'Display the results. If (xmlReq.Status >= 200 And xmlReq.Status < 300) Then Debug.Print &quot;Success! &quot; & &quot;Results = &quot; & xmlReq.Status & &quot;: &quot; & xmlReq.statusText Debug.Print xmlReq.ResponseText Else Debug.Print &quot;Request Failed. Results = &quot; & xmlReq.Status & &quot;: &quot; & xmlReq.statusText End If

End Sub 

Additional query words: ical

Keywords: kbhowto kbmsg KB309699

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.