Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Thu, 30 Jun 2005 08:37:03 -0700,    group: microsoft.public.exchange2000.development        back       


Create Appointment vs Meeting Request with WebDAV   
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>
date: Thu, 30 Jun 2005 08:37:03 -0700   author:   DWD

Re: Create Appointment vs Meeting Request with WebDAV   
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>
>
date: Thu, 7 Jul 2005 14:03:33 +1000   author:   Glen Scales [MVP]

Re: Create Appointment vs Meeting Request with WebDAV   
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.)
date: Thu, 7 Jul 2005 01:27:06 -0700   author:   DWD

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us