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, 1 May 2006 15:25:01 -0700,    group: microsoft.public.exchange2000.development        back       


TaskRequest Help   
Hello,

I need to create an IPM.TaskRequest via CDOEX or WEBDAV.

Does anyone have any sample? I'm using C#, but any sample at all is welcome.

I created some messages, but Outlook just can't open it.

Please help.

Thanks in advanced,
Denys Rodrigues
date: Mon, 1 May 2006 15:25:01 -0700   author:   Denys Rodrigues

Re: TaskRequest Help   
There's are a couple of C# samples in this thread for WebDAV and the Outlook 
Object Model. 
http://groups.google.com/group/microsoft.public.exchange.development/browse_frm/thread/6641ba7a465f624c/21518a8cbabd8935.

Cheers
Glen

"Denys Rodrigues"  wrote in 
message news:132E1565-1548-4D20-BBD2-9724DA8B50BB@microsoft.com...
> Hello,
>
> I need to create an IPM.TaskRequest via CDOEX or WEBDAV.
>
> Does anyone have any sample? I'm using C#, but any sample at all is 
> welcome.
>
> I created some messages, but Outlook just can't open it.
>
> Please help.
>
> Thanks in advanced,
> Denys Rodrigues
date: Tue, 2 May 2006 08:59:33 +1000   author:   Glen Scales [MVP]

Re: TaskRequest Help   
Glen,

Thanks for the post, but this is not all of it.

I create the task alright, but I need to create an IPM.TaskRequest (the task 
is going to be assigned to another user).

Cheers.

"Glen Scales [MVP]" wrote:

> There's are a couple of C# samples in this thread for WebDAV and the Outlook 
> Object Model. 
> http://groups.google.com/group/microsoft.public.exchange.development/browse_frm/thread/6641ba7a465f624c/21518a8cbabd8935.
> 
> Cheers
> Glen
> 
> "Denys Rodrigues"  wrote in 
> message news:132E1565-1548-4D20-BBD2-9724DA8B50BB@microsoft.com...
> > Hello,
> >
> > I need to create an IPM.TaskRequest via CDOEX or WEBDAV.
> >
> > Does anyone have any sample? I'm using C#, but any sample at all is 
> > welcome.
> >
> > I created some messages, but Outlook just can't open it.
> >
> > Please help.
> >
> > Thanks in advanced,
> > Denys Rodrigues 
> 
> 
>
date: Mon, 1 May 2006 17:12:01 -0700   author:   Denys Rodrigues

Re: TaskRequest Help   
Sorry, Dont have any C# or WebDAV code for doing that here's some VBS using 
CDOEX which you should be able to translate in C# and or WebDAV

set rec = createobject("ADODB.Record")
Set Msg = CreateObject("CDO.Message")
Set Config = CreateObject("CDO.Configuration")
rec.open "file://./backofficestorage/youdomain/MBX/mailbox",,3
Set Msg.Configuration = Config
Config("http://schemas.microsoft.com/cdo/configuration/sendusing") = 3 
'cdoSendUsingExchange
Config("http://schemas.microsoft.com/cdo/configuration/mailboxurl") = 
"file://./backofficestorage/youdomain/MBX/mailbox"
Config("http://schemas.microsoft.com/cdo/configuration/activeconnection") = 
rec.activeconnection
Config.Fields.Update
Msg.To = b...@yourdomain.com
Msg.From = mail...@yourdomain.com
Msg.Subject = "test"
Msg.Fields("DAV:contentclass") ="urn:content-classes:taskrequest"
Msg.Fields("http://schemas.microsoft.com/exchange/outlookmessageclass")= 
"IPM.TaskRequest"
Msg.Fields("http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/0x851a")= 
1
Msg.Fields("http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/0x8519")= 
strTaskEntryID
Msg.Fields("http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/0x8514")= 
1
Msg.Fields("http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/0x8518")= 
1
Msg.Fields("http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/0x7D01")= 
1
msg.fields.update
Msg.Send

This type of code is allways a work because tasks aren't supported in 
anything except the OOM  you should get a copy of Outlook Spy so you can see 
the Mapi properties that need to be set in Task request and add or remove 
anyone's that i might have missed.

Cheers
Glen

"Denys Rodrigues"  wrote in 
message news:F02D5F85-24BD-441A-ADDD-2D683B17FE07@microsoft.com...
> Glen,
>
> Thanks for the post, but this is not all of it.
>
> I create the task alright, but I need to create an IPM.TaskRequest (the 
> task
> is going to be assigned to another user).
>
> Cheers.
>
> "Glen Scales [MVP]" wrote:
>
>> There's are a couple of C# samples in this thread for WebDAV and the 
>> Outlook
>> Object Model.
>> http://groups.google.com/group/microsoft.public.exchange.development/browse_frm/thread/6641ba7a465f624c/21518a8cbabd8935.
>>
>> Cheers
>> Glen
>>
>> "Denys Rodrigues"  wrote in
>> message news:132E1565-1548-4D20-BBD2-9724DA8B50BB@microsoft.com...
>> > Hello,
>> >
>> > I need to create an IPM.TaskRequest via CDOEX or WEBDAV.
>> >
>> > Does anyone have any sample? I'm using C#, but any sample at all is
>> > welcome.
>> >
>> > I created some messages, but Outlook just can't open it.
>> >
>> > Please help.
>> >
>> > Thanks in advanced,
>> > Denys Rodrigues
>>
>>
>>
date: Tue, 2 May 2006 13:35:33 +1000   author:   Glen Scales [MVP]

Re: TaskRequest Help   
Hi Glen,

Sorry to bother again.

I tried your sample and I could receive the message with an icon of a task, 
but it could not open it with Outlook.

I tried to open the sent message (in the sent items) and the received 
message, in the inbox. Could not do it.

Maybe something is missing. Shouldn't I, at some point, attach the task to 
this outgoing message?

By the way, on your sample you set the 0x8519 properti to strTaskEntryID. I 
tried to copy the entryid, as hex string, from my task using OutlookSpy. I 
tried also to create a new byte array with the bytes of the same entryid.

What am I missing here?

With your sample code, can you open this message with Outlook?

Cheers,
Denys

"Glen Scales [MVP]" wrote:

> Sorry, Dont have any C# or WebDAV code for doing that here's some VBS using 
> CDOEX which you should be able to translate in C# and or WebDAV
> 
> set rec = createobject("ADODB.Record")
> Set Msg = CreateObject("CDO.Message")
> Set Config = CreateObject("CDO.Configuration")
> rec.open "file://./backofficestorage/youdomain/MBX/mailbox",,3
> Set Msg.Configuration = Config
> Config("http://schemas.microsoft.com/cdo/configuration/sendusing") = 3 
> 'cdoSendUsingExchange
> Config("http://schemas.microsoft.com/cdo/configuration/mailboxurl") = 
> "file://./backofficestorage/youdomain/MBX/mailbox"
> Config("http://schemas.microsoft.com/cdo/configuration/activeconnection") = 
> rec.activeconnection
> Config.Fields.Update
> Msg.To = b...@yourdomain.com
> Msg.From = mail...@yourdomain.com
> Msg.Subject = "test"
> Msg.Fields("DAV:contentclass") ="urn:content-classes:taskrequest"
> Msg.Fields("http://schemas.microsoft.com/exchange/outlookmessageclass")= 
> "IPM.TaskRequest"
> Msg.Fields("http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/0x851a")= 
> 1
> Msg.Fields("http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/0x8519")= 
> strTaskEntryID
> Msg.Fields("http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/0x8514")= 
> 1
> Msg.Fields("http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/0x8518")= 
> 1
> Msg.Fields("http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/0x7D01")= 
> 1
> msg.fields.update
> Msg.Send
> 
> This type of code is allways a work because tasks aren't supported in 
> anything except the OOM  you should get a copy of Outlook Spy so you can see 
> the Mapi properties that need to be set in Task request and add or remove 
> anyone's that i might have missed.
> 
> Cheers
> Glen
> 
> "Denys Rodrigues"  wrote in 
> message news:F02D5F85-24BD-441A-ADDD-2D683B17FE07@microsoft.com...
> > Glen,
> >
> > Thanks for the post, but this is not all of it.
> >
> > I create the task alright, but I need to create an IPM.TaskRequest (the 
> > task
> > is going to be assigned to another user).
> >
> > Cheers.
> >
> > "Glen Scales [MVP]" wrote:
> >
> >> There's are a couple of C# samples in this thread for WebDAV and the 
> >> Outlook
> >> Object Model.
> >> http://groups.google.com/group/microsoft.public.exchange.development/browse_frm/thread/6641ba7a465f624c/21518a8cbabd8935.
> >>
> >> Cheers
> >> Glen
> >>
> >> "Denys Rodrigues"  wrote in
> >> message news:132E1565-1548-4D20-BBD2-9724DA8B50BB@microsoft.com...
> >> > Hello,
> >> >
> >> > I need to create an IPM.TaskRequest via CDOEX or WEBDAV.
> >> >
> >> > Does anyone have any sample? I'm using C#, but any sample at all is
> >> > welcome.
> >> >
> >> > I created some messages, but Outlook just can't open it.
> >> >
> >> > Please help.
> >> >
> >> > Thanks in advanced,
> >> > Denys Rodrigues
> >>
> >>
> >> 
> 
> 
>
date: Thu, 4 May 2006 05:54:02 -0700   author:   Denys Rodrigues

Re: TaskRequest Help   
Its seems I dug myself a hole here that code doesn't seem to work (and nor 
would it have ever) Task requests are quite complicated I don't think you 
will be able to successfully do this without using MAPI. I would suggest you 
have a read of Dan Mitchell's post on the Mapi mailing list see 
http://peach.ease.lsoft.com/scripts/wa.exe?A2=ind0010&L=MAPI-L&P=R867&I=-3

Cheers
Glen

"Denys Rodrigues"  wrote in 
message news:0DC9C60D-397D-4173-BA55-FEE98EAA9D32@microsoft.com...
> Hi Glen,
>
> Sorry to bother again.
>
> I tried your sample and I could receive the message with an icon of a 
> task,
> but it could not open it with Outlook.
>
> I tried to open the sent message (in the sent items) and the received
> message, in the inbox. Could not do it.
>
> Maybe something is missing. Shouldn't I, at some point, attach the task to
> this outgoing message?
>
> By the way, on your sample you set the 0x8519 properti to strTaskEntryID. 
> I
> tried to copy the entryid, as hex string, from my task using OutlookSpy. I
> tried also to create a new byte array with the bytes of the same entryid.
>
> What am I missing here?
>
> With your sample code, can you open this message with Outlook?
>
> Cheers,
> Denys
>
> "Glen Scales [MVP]" wrote:
>
>> Sorry, Dont have any C# or WebDAV code for doing that here's some VBS 
>> using
>> CDOEX which you should be able to translate in C# and or WebDAV
>>
>> set rec = createobject("ADODB.Record")
>> Set Msg = CreateObject("CDO.Message")
>> Set Config = CreateObject("CDO.Configuration")
>> rec.open "file://./backofficestorage/youdomain/MBX/mailbox",,3
>> Set Msg.Configuration = Config
>> Config("http://schemas.microsoft.com/cdo/configuration/sendusing") = 3
>> 'cdoSendUsingExchange
>> Config("http://schemas.microsoft.com/cdo/configuration/mailboxurl") =
>> "file://./backofficestorage/youdomain/MBX/mailbox"
>> Config("http://schemas.microsoft.com/cdo/configuration/activeconnection") 
>> =
>> rec.activeconnection
>> Config.Fields.Update
>> Msg.To = b...@yourdomain.com
>> Msg.From = mail...@yourdomain.com
>> Msg.Subject = "test"
>> Msg.Fields("DAV:contentclass") ="urn:content-classes:taskrequest"
>> Msg.Fields("http://schemas.microsoft.com/exchange/outlookmessageclass")=
>> "IPM.TaskRequest"
>> Msg.Fields("http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/0x851a")=
>> 1
>> Msg.Fields("http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/0x8519")=
>> strTaskEntryID
>> Msg.Fields("http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/0x8514")=
>> 1
>> Msg.Fields("http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/0x8518")=
>> 1
>> Msg.Fields("http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/0x7D01")=
>> 1
>> msg.fields.update
>> Msg.Send
>>
>> This type of code is allways a work because tasks aren't supported in
>> anything except the OOM  you should get a copy of Outlook Spy so you can 
>> see
>> the Mapi properties that need to be set in Task request and add or remove
>> anyone's that i might have missed.
>>
>> Cheers
>> Glen
>>
>> "Denys Rodrigues"  wrote in
>> message news:F02D5F85-24BD-441A-ADDD-2D683B17FE07@microsoft.com...
>> > Glen,
>> >
>> > Thanks for the post, but this is not all of it.
>> >
>> > I create the task alright, but I need to create an IPM.TaskRequest (the
>> > task
>> > is going to be assigned to another user).
>> >
>> > Cheers.
>> >
>> > "Glen Scales [MVP]" wrote:
>> >
>> >> There's are a couple of C# samples in this thread for WebDAV and the
>> >> Outlook
>> >> Object Model.
>> >> http://groups.google.com/group/microsoft.public.exchange.development/browse_frm/thread/6641ba7a465f624c/21518a8cbabd8935.
>> >>
>> >> Cheers
>> >> Glen
>> >>
>> >> "Denys Rodrigues"  wrote in
>> >> message news:132E1565-1548-4D20-BBD2-9724DA8B50BB@microsoft.com...
>> >> > Hello,
>> >> >
>> >> > I need to create an IPM.TaskRequest via CDOEX or WEBDAV.
>> >> >
>> >> > Does anyone have any sample? I'm using C#, but any sample at all is
>> >> > welcome.
>> >> >
>> >> > I created some messages, but Outlook just can't open it.
>> >> >
>> >> > Please help.
>> >> >
>> >> > Thanks in advanced,
>> >> > Denys Rodrigues
>> >>
>> >>
>> >>
>>
>>
>>
date: Fri, 5 May 2006 12:20:39 +1000   author:   Glen Scales [MVP]

Google
 
Web ureader.com


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