Setting categorie in a task via WEBDAV

Setting categorie in a task via WEBDAV

Post by Manfred Ki » Thu, 22 Dec 2005 17:05:33


Hi,

does anybody know how to add a category in adding a task?
I already able to generate a task with:

sReq = "<?xml version='1.0'?>" & _

"<d:propertyupdate xmlns:d='DAV:' " & _

"xmlns:e=' http://www.yqcomputer.com/ ' " & _

"xmlns:b='urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/' " & _

"xmlns:f='urn:schemas:mailheader:' " & _

"xmlns:g='urn:schemas:httpmail:' " & _

"xmlns:h=' http://www.yqcomputer.com/ " & _

"{00062003-0000-0000-C000-000000000046}/'><d:set><d:prop>" & _

"<d:contentclass>urn:content-classes:task</d:contentclass>" & _

"<e:outlookmessageclass>IPM.Task</e:outlookmessageclass>" & _

"<f:subject>" & SUBJ & "</f:subject>" & _

"<g:textdescription>" & BESCHR & "</g:textdescription>" & _

"<e:mileage>" & UID & "</e:mileage> " & _

"<h:0x00008102 b:dt='float'>.25</h:0x00008102>" & _

"<h:0x00008101 b:dt='int'>1</h:0x00008101>" & _

"<h:0x8517 b:dt=""dateTime.tz"">2004-11-04T13:30:00.00Z</h:0x8517>" & _

"<h:0x00008105 b:dt=""dateTime.tz"">" & DATUM &
"T13:30:00.00Z</h:0x00008105>" & _

"</d:prop></d:set></d:propertyupdate>"



but still didn find the wa how to set the category...
thanks for your help

manfred
 
 
 

Setting categorie in a task via WEBDAV

Post by Glen Scale » Fri, 23 Dec 2005 09:49:28

The categories property should be
http://www.yqcomputer.com/
property so give something like this a try

"<e:keywords-utf8 b:dt=""mv.string"">" & _
"<x:v>Cat1</x:v>" & _
"<x:v>Cat2</x:v>" & _
"</e:keywords-utf8>" & _

Cheers
Glen

 
 
 

Setting categorie in a task via WEBDAV

Post by Manfred Ki » Fri, 23 Dec 2005 20:14:56

Hello Glen,

ich gave it a try ;-) but i always get a "bad request from" exchange
server..

the character "e" i already use in
"xmlns:e=' http://www.yqcomputer.com/ ' "
might this be the problem?


i tried to set the categorie in using
"<e:categories b:dt=""mv.string""><x:v>Cat1</x:v></e:categories>"
or
"<e:categories-utf8 b:dt=""mv.string""><x:v>Cat1</x:v></e:categories-utf-8>"

but no chance...



any other idea?

cheers

manfred






"Glen Scales [MVP]" < XXXX@XXXXX.COM > schrieb im Newsbeitrag
 
 
 

Setting categorie in a task via WEBDAV

Post by Glen Scale » Sat, 24 Dec 2005 08:56:57

eywords is a property in the 'http://schemas.microsoft.com/exchange/
namespace so e is the right label. The problem I think with your XML is that
you haven't included a deceleration for the mulitvalued prop eg you need to
include

xmlns:x='XML:' " & _

so "<x:v>Cat1</x:v>" & _ this will map to a namespace. I gave this a
quick try with your XML and it worked okay eg


sReq = "<?xml version='1.0'?>" & _
"<d:propertyupdate xmlns:d='DAV:' " & _
"xmlns:e='http://schemas.microsoft.com/exchange/' " & _
"xmlns:b='urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/' " & _
"xmlns:f='urn:schemas:mailheader:' " & _
"xmlns:g='urn:schemas:httpmail:' " & _
"xmlns:x='XML:' " & _
"xmlns:h='http://schemas.microsoft.com/mapi/id/" & _
"{00062003-0000-0000-C000-000000000046}/'><d:set><d:prop>" & _
"<d:contentclass>urn:content-classes:task</d:contentclass>" & _
"<e:outlookmessageclass>IPM.Task</e:outlookmessageclass>" & _
"<f:subject>test</f:subject>" & _
"<g:textdescription>hello</g:textdescription>" & _
"<e:mileage></e:mileage> " & _
"<e:keywords-utf8 b:dt=""mv.string"">" & _
"<x:v>Cat1</x:v>" & _
"<x:v>Cat2</x:v>" & _
"</e:keywords-utf8>" & _
"<h:0x00008102 b:dt='float'>.25</h:0x00008102>" & _
"<h:0x00008101 b:dt='int'>1</h:0x00008101>" & _
"<h:0x8517 b:dt=""dateTime.tz"">2004-11-04T13:30:00.00Z</h:0x8517>" & _
"<h:0x00008105 b:dt=""dateTime.tz"">2004-11-04T14:30:00.00Z</h:0x00008105>"
& _
"</d:prop></d:set></d:propertyupdate>"


Cheers
Glen

"Manfred Kig" < XXXX@XXXXX.COM > wrote in message
news:doe1sa$2le$01$ XXXX@XXXXX.COM ...


 
 
 

Setting categorie in a task via WEBDAV

Post by Manfred Ki » Sat, 31 Dec 2005 03:37:38

len, it works...
thanks for your help

cheers manfred


"Glen Scales [MVP]" < XXXX@XXXXX.COM > schrieb im Newsbeitrag
news: XXXX@XXXXX.COM ...
that
to
b:dt=""dateTime.tz"">2004-11-04T14:30:00.00Z</h:0x00008105>"
_