I have copied the sample code to create an appointment with WebDAV and it sort of works. Only problem is it creates what I would call a meeting request (in Outlook it shows with the two heads icon, when you open it it has the To fields etc and it has a tracking tab). I want just an ordinary simple appointment (the sort of thing you get if you just click "New Appointment" and don't add attendees. I have tried removing what looked like extra fields from the XML I send, with no success. So I am now guessing I need to add the correct field with the correct value! Any idea what? My XML now looks like: <?xml version="1.0"?> <g:propertyupdate xmlns:g="DAV:" xmlns:e="http://schemas.microsoft.com/exchange/" xmlns:mapi="http://schemas.microsoft.com/mapi/" xmlns:mapit="http://schemas.microsoft.com/mapi/proptag/" xmlns:x="xml:" xmlns:cal="urn:schemas:calendar:" xmlns:dt="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/" xmlns:header="urn:schemas:mailheader:" xmlns:mail="urn:schemas:httpmail:"> <g:set> <g:prop> <g:contentclass>urn:content-classes:appointment</g:contentclass> <e:outlookmessageclass>IPM.Appointment</e:outlookmessageclass> <mail:subject>Test</mail:subject> <mail:content-media-type>text/html</mail:content-media-type> <mail:htmldescription>My Appointment</mail:htmldescription> <cal:dtstart dt:dt="dateTime.tz">2005-07-01T15:10:00.000Z</cal:dtstart> <cal:dtend dt:dt="dateTime.tz">2005-07-01T15:40:00.000Z</cal:dtend> <cal:instancetype dt:dt="int">0</cal:instancetype> <cal:busystatus>TENTATIVE</cal:busystatus> <cal:alldayevent dt:dt="boolean">0</cal:alldayevent> <cal:reminderoffset dt:dt="int">3600</cal:reminderoffset> </g:prop> </g:set> </g:propertyupdate>
Try adding the apptstateflags property and setting it to 0 this should ensure that the MeetingStatus property gets also gets set to 0 eg "<mapi:apptstateflags dt:dt=""int"">0</mapi:apptstateflags>" Cheers Glen "DWD" wrote in message news:F808CB8D-8586-4D94-BAD8-93B6EA0E9676@microsoft.com... >I have copied the sample code to create an appointment with WebDAV and it > sort of works. Only problem is it creates what I would call a meeting > request > (in Outlook it shows with the two heads icon, when you open it it has the > To > fields etc and it has a tracking tab). > > I want just an ordinary simple appointment (the sort of thing you get if > you > just click "New Appointment" and don't add attendees. > > I have tried removing what looked like extra fields from the XML I send, > with no success. So I am now guessing I need to add the correct field with > the correct value! Any idea what? My XML now looks like: > <?xml version="1.0"?> > <g:propertyupdate xmlns:g="DAV:" > xmlns:e="http://schemas.microsoft.com/exchange/" > xmlns:mapi="http://schemas.microsoft.com/mapi/" > xmlns:mapit="http://schemas.microsoft.com/mapi/proptag/" xmlns:x="xml:" > xmlns:cal="urn:schemas:calendar:" > xmlns:dt="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/" > xmlns:header="urn:schemas:mailheader:" xmlns:mail="urn:schemas:httpmail:"> > <g:set> > <g:prop> > <g:contentclass>urn:content-classes:appointment</g:contentclass> > <e:outlookmessageclass>IPM.Appointment</e:outlookmessageclass> > <mail:subject>Test</mail:subject> > <mail:content-media-type>text/html</mail:content-media-type> > <mail:htmldescription>My Appointment</mail:htmldescription> > <cal:dtstart dt:dt="dateTime.tz">2005-07-01T15:10:00.000Z</cal:dtstart> > <cal:dtend dt:dt="dateTime.tz">2005-07-01T15:40:00.000Z</cal:dtend> > <cal:instancetype dt:dt="int">0</cal:instancetype> > <cal:busystatus>TENTATIVE</cal:busystatus> > <cal:alldayevent dt:dt="boolean">0</cal:alldayevent> > <cal:reminderoffset dt:dt="int">3600</cal:reminderoffset> > </g:prop> > </g:set> > </g:propertyupdate> >
I tried that and it didn't work. But then I found I had also made another change which had broken it! So now it does work. Many thanks. Any idea why: "<mail:content-media-type>text/html</mail:content-media-type>" & _ should have resulted in: <?xml version="1.0"?> <a:multistatus xmlns:c="urn:schemas:httpmail:" xmlns:b="http://schemas.microsoft.com/exchange/" xmlns:a="DAV:"> <a:response> <a:href>http://Server/ExchDAV/me/Calendar/UID-ca51c6e906ad4499a526f7d121dc1826-7903.eml</a:href> <a:propstat> <a:status>HTTP/1.1 403 Forbidden</a:status> <a:prop> <c:content-media-type/> </a:prop> </a:propstat> </a:response> </a:multistatus> (I am trying to set an HTML description of the appt.)