Microsoft KB Archive/259853

= XCLN: How to Create an Appointment Folder Using WebDAV =

Article ID: 259853

Article Last Modified on 2/21/2007

-

APPLIES TO


 * Microsoft Exchange 2000 Server Standard Edition

-



This article was previously published under Q259853



SUMMARY
This article describes how to create an appointment folder in the default public folder store by using Distributed Authoring Version (DAV) command MKCOL. The http://schemas.microsoft.com/exchange/outlookfolderclass property of this folder is set to IPF. You create an appointment by sending an Extensible Markup Language (XML) body in the request.



MORE INFORMATION
To test the code:   Create a public folder named Aspapps under Public Folders. Copy and paste the following code to Notepad, modify the code to reflect your server name, and then save the code in the Aspapps folder as the Mkcolappt.asp file. <%@ language=vbscript %> <% option explicit '-- 'Example: Create an appointment folder in the MAPI public folder tree '-- Dim newFolderURL

Dim XMLreq 'XML activeX object to process the request to create the folder Dim sReq 'XML request string newFolderURL = &quot;http://ServerName/public/MKCOLAppt&quot;

'Use XML to create the new folder set XMLreq = createobject(&quot;microsoft.xmlhttp&quot;)

XMLreq.open &quot;MKCOL&quot;, newFolderURL, false XMLreq.setrequestheader &quot;Content-Type&quot;, &quot;text/xml&quot;

sReq = &quot;&quot; sReq = sReq & &quot;&quot; sReq = sReq & &quot;&quot; sReq = sReq & &quot;IPF.Appointment&quot; sReq = sReq & &quot;&quot;

'send the request to set the search criteria XMLreq.send(sReq)

'display the results if (XMLreq.status >= 200 and XMLreq.status < 300) then Response.Write(&quot;Success!  &quot; & &quot;Results = &quot; & XMLreq.status & &quot;: &quot; & XMLreq.statusText  & &quot;&quot;) else Response.Write(&quot;Request Failed. Results = &quot; & XMLreq.status & &quot;: &quot; & XMLreq.statusText & &quot;</P>&quot;) end if %> </li> <li>Run the .asp file in Microsoft Internet Explorer by using the following path:

http:// /public/aspapps/mkcolappt.asp

</li></ol>

After you perform these steps, an appointment folder named MKCOLAppt is created under Public Folders.

Additional query words: WebDAV MKCOL

Keywords: kbinfo KB259853

-

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

© Microsoft Corporation. All rights reserved.