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
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 > > >
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 > > > > > > > >
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 >> > >> > >> > >> >> > >
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 > >> > > >> > > >> > > >> > >> > > > > > >