An Outlook calendar appointment is not visible in the Day, Week, or Month view when you create the appointment by using WebDAV in Exchange 2000 (827432)



The information in this article applies to:

  • Microsoft Exchange 2000 Server
  • Microsoft Exchange 2000 Enterprise Server
  • Microsoft Outlook 2002

SYMPTOMS

When you create an appointment by using Web Distributed Authoring and Versioning (WebDAV), in the context of a delegate user, another delegate user may experience all the following symptoms when that delegate user views the mailbox owner's calendar:
  • The appointment does not appear when Microsoft Outlook is in the Day, Week, or Month view.
  • The appointment appears correctly when the appointments are sorted by category.
  • The appointment appears correctly when the delegate user views the appointment by using Microsoft Outlook Web Access (OWA).

CAUSE

This issue occurs if you do not explicitly set the dispidRecurring MAPI property in your program. When a schema name in your program is not specified, Outlook makes assumptions about the schema properties. Therefore, appointments that you create programmatically may not appear consistently when they are viewed in Outlook.

RESOLUTION

To resolve this issue, specify the dispidRecurring property in your program. The following code excerpt illustrates how to set this MAPI property.

Note You must include the data type namespace:
"xmlns:dt=""urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/""" & _
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.

Code exerpt

sNS = "xmlns:g=""DAV:"" " & _
" xmlns:e=""<http://schemas.microsoft.com/exchange/>""" & _
" xmlns:mapi=""<http://schemas.microsoft.com/mapi/id/{00062002-0000-0000-C000-000000000046}/>""" & _
" xmlns:x=""xml:"" xmlns:cal=""urn:schemas:calendar:""" & _
" xmlns:dt=""urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/""" & _
" xmlns:mail=""urn:schemas:httpmail:"">" 
sQuery = "<?xml version=""1.0""?>" & _
"<g:propertyupdate " & sNS & _
"<g:set>" & _
"<g:prop>" & _
"<g:contentclass>urn:content-classes:appointment</g:contentclass>" & _
"<e:outlookmessageclass>IPM.Appointment</e:outlookmessageclass>" & _
"<mail:subject>Appointment Subject</mail:subject>" & _
"<cal:location>Appointment Location</cal:location>" & _
"<cal:dtstart dt:dt=""dateTime.tz"">2003-07-07T22:00:00.000Z</cal:dtstart>" & _
"<cal:dtend dt:dt=""dateTime.tz"">2003-07-07T22:30:00.000Z</cal:dtend>" & _
"<cal:instancetype dt:dt=""int"">0</cal:instancetype>" & _
"<cal:busystatus>BUSY</cal:busystatus>" & _
"<cal:meetingstatus>TENTATIVE</cal:meetingstatus>" & _
"<cal:alldayevent dt:dt=""boolean"">0</cal:alldayevent>" & _
"<mapi:0x00008223 dt:dt=""boolean"">1</mapi:0x00008223>" & _
"</g:prop>" & _
"</g:set>" & _
"</g:propertyupdate>"
In this code excerpt, the following item specifies the dispidRecurring property:
"<mapi:0x00008223 dt:dt=""boolean"">1</mapi:0x00008223>" & _
This excerpt sets the MAPI property to 1 (TRUE) to create a recurring appointment. To create a non-recurring appointment, set this property to 0 (FALSE).

Modification Type:MajorLast Reviewed:7/5/2005
Keywords:kbenv kbprb KB827432 kbAudDeveloper kbAudITPRO