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: Wed, 21 Dec 2005 09:05:33 +0100,    group: microsoft.public.exchange2000.development        back       


Setting categorie in a task via WEBDAV   
Hi,

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

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: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>" & 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 didnt find the wa how to set the category...
thanks for your help

manfred
date: Wed, 21 Dec 2005 09:05:33 +0100   author:   Manfred Knig

Re: Setting categorie in a task via WEBDAV   
The categories property should be 
http://schemas.microsoft.com/exchange/keywords-utf8 which is a mutlivalued 
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

"Manfred Knig"  wrote in message 
news:dob2d3$6ib$00$1@news.t-online.com...
> Hi,
>
> does anybody know how to add a category in adding a task?
> Im already able to generate a task with:
>
> 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: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>" & 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 didnt find the wa how to set the category...
> thanks for your help
>
> manfred
>
>
>
date: Thu, 22 Dec 2005 11:49:28 +1100   author:   Glen Scales [MVP]

Re: Setting categorie in a task via WEBDAV   
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://schemas.microsoft.com/exchange/' "
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]"  schrieb im Newsbeitrag
news:eRLbTGpBGHA.424@TK2MSFTNGP10.phx.gbl...
> The categories property should be
> http://schemas.microsoft.com/exchange/keywords-utf8 which is a mutlivalued
> 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
>
> "Manfred Knig"  wrote in message
> news:dob2d3$6ib$00$1@news.t-online.com...
> > Hi,
> >
> > does anybody know how to add a category in adding a task?
> > Im already able to generate a task with:
> >
> > 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: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>" & 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 didnt find the wa how to set the category...
> > thanks for your help
> >
> > manfred
> >
> >
> >
>
>
date: Thu, 22 Dec 2005 12:14:56 +0100   author:   Manfred Knig

Re: Setting categorie in a task via WEBDAV   
Keywords 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 Knig"  wrote in message 
news:doe1sa$2le$01$1@news.t-online.com...
> 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://schemas.microsoft.com/exchange/' "
> 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]"  schrieb im Newsbeitrag
> news:eRLbTGpBGHA.424@TK2MSFTNGP10.phx.gbl...
>> The categories property should be
>> http://schemas.microsoft.com/exchange/keywords-utf8 which is a 
>> mutlivalued
>> 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
>>
>> "Manfred Knig"  wrote in message
>> news:dob2d3$6ib$00$1@news.t-online.com...
>> > Hi,
>> >
>> > does anybody know how to add a category in adding a task?
>> > Im already able to generate a task with:
>> >
>> > 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: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>" & 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 didnt find the wa how to set the category...
>> > thanks for your help
>> >
>> > manfred
>> >
>> >
>> >
>>
>>
>
>
date: Fri, 23 Dec 2005 10:56:57 +1100   author:   Glen Scales [MVP]

Re: Setting categorie in a task via WEBDAV   
glen, it works...
thanks for your help

cheers manfred


"Glen Scales [MVP]"  schrieb im Newsbeitrag
news:uJUZnN1BGHA.1144@TK2MSFTNGP12.phx.gbl...
> Keywords 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 Knig"  wrote in message
> news:doe1sa$2le$01$1@news.t-online.com...
> > 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://schemas.microsoft.com/exchange/' "
> > 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]"  schrieb im Newsbeitrag
> > news:eRLbTGpBGHA.424@TK2MSFTNGP10.phx.gbl...
> >> The categories property should be
> >> http://schemas.microsoft.com/exchange/keywords-utf8 which is a
> >> mutlivalued
> >> 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
> >>
> >> "Manfred Knig"  wrote in message
> >> news:dob2d3$6ib$00$1@news.t-online.com...
> >> > Hi,
> >> >
> >> > does anybody know how to add a category in adding a task?
> >> > Im already able to generate a task with:
> >> >
> >> > 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: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>" & 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 didnt find the wa how to set the category...
> >> > thanks for your help
> >> >
> >> > manfred
> >> >
> >> >
> >> >
> >>
> >>
> >
> >
>
>
date: Thu, 29 Dec 2005 19:37:38 +0100   author:   Manfred Knig

Google
 
Web ureader.com


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