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: Mon, 11 Jul 2005 13:50:49 +0200,    group: microsoft.public.exchange2000.development        back       


Serversink   
I've got a Mail (vTodo). How we can create a Task with the ExchangeSDK or 
another methode?
date: Mon, 11 Jul 2005 13:50:49 +0200   author:   ajann

Re: Serversink   
I believe Exchange (and Outlook) don't currently support the vTodo ical part 
currently only VEVENT is supported. The bodypart should however be in clear 
text so one idea would be to parseout the vToDo bodypart and then manually 
create a task and set the corresponding MAPI properties. The Outlook Object 
Model  is the only supported API for creating tasks (which is useless in an 
event sink) you can create task using ADO/CDOEX using a workaround which is 
more appropriate in an event sink you just need to set the contentclass and 
outlookmessageclass properties manually eg

TASK_FOLDER_URL = "http://server/exchange/mailbox/tasks/"
set oTask = CreateObject("CDO.Message")
With oTask
 .Fields("DAV:contentclass").Value = "urn:content-classes:task"
 .Fields("http://schemas.microsoft.com/exchange/outlookmessageclass").Value 
= "IPM.Task"
 .Fields("urn:schemas:mailheader:subject").Value = "Task Subject"
 .Fields("urn:schemas:httpmail:textdescription").Value = "Blah"
 .Fields("http://schemas.microsoft.com/mapi/id/{00062003-0000-0000-C000-000000000046}/0x00008102")= 0.0 .Fields("http://schemas.microsoft.com/mapi/id/{00062003-0000-0000-C000-000000000046}/0x0000811c") = False .Fields("http://schemas.microsoft.com/mapi/id/{00062003-0000-0000-C000-000000000046}/0x00008101") = False .Fields("http://schemas.microsoft.com/mapi/id/{00062003-0000-0000-C000-000000000046}/0x00008113") = 1 .Fields("http://schemas.microsoft.com/mapi/id/{00062003-0000-0000-C000-000000000046}/0x00008110") = 0 .Fields("http://schemas.microsoft.com/mapi/id/{00062003-0000-0000-C000-000000000046}/0x00008101") = Clng(0) .Fields("http://schemas.microsoft.com/mapi/id/{00062003-0000-0000-C000-000000000046}/0x00008111") = 0 .Fields("http://schemas.microsoft.com/mapi/id/{00062003-0000-0000-C000-000000000046}/0x00008103") = 0 .Fields.Update .DataSource.SaveToContainer TASK_FOLDER_URLEnd WithCheersGlen"ajann"  wrote in messagenews:OtvUK7ghFHA.3692@TK2MSFTNGP09.phx.gbl...> I've got a Mail (vTodo). How we can create a Task with the ExchangeSDK oranother methode?>>
date: Tue, 12 Jul 2005 11:24:49 +1000   author:   Glen Scales [MVP]

Google
 
Web ureader.com


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