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: Thu, 22 Dec 2005 13:42:02 -0800,    group: microsoft.public.exchange2000.development        back       


Saving Attachments in a Workflow   
Hello,

I am developing a workflow application using Workflow Desiger Ex2K. All this 
workflow needs to do is to store attachments (PDF files) in a file folder 
whenever a message arrives in the public folder. Is there a way to get the 
attachments in the OnCreate event itself?

Thanks
- VG
date: Thu, 22 Dec 2005 13:42:02 -0800   author:   VG

Re: Saving Attachments in a Workflow   
You should be able to open the message using CDO and get the attachments.

Tom

-- 
Looking for a good book on Exchange, Outlook and SharePoint?  Check out 
http://www.microsoft.com/mspress/books/5517.asp


"VG"  wrote in message 
news:925B1A46-AFF4-498C-B398-C4731A16CC38@microsoft.com...
> Hello,
>
> I am developing a workflow application using Workflow Desiger Ex2K. All 
> this
> workflow needs to do is to store attachments (PDF files) in a file folder
> whenever a message arrives in the public folder. Is there a way to get the
> attachments in the OnCreate event itself?
>
> Thanks
> - VG
date: Sun, 25 Dec 2005 10:17:39 -0800   author:   Tom Rizzo [MSFT]

Re: Saving Attachments in a Workflow   
Tom, thanks for your response. I can not open the message using CDO in the 
OnCreate event. 

strSource = WorkflowSession.Fields("DAV:Href")
Set objCopyMess = CreateObject("CDO.Message")
objCopyMess.DataSource.Open strSource, WorkflowSession.ActiveConnection

This code gives me an error in the OnCreate event.

Is there any other way to do this?

- VG

"Tom Rizzo [MSFT]" wrote:

> You should be able to open the message using CDO and get the attachments.
> 
> Tom
> 
> -- 
> Looking for a good book on Exchange, Outlook and SharePoint?  Check out 
> http://www.microsoft.com/mspress/books/5517.asp
> 
> 
> "VG"  wrote in message 
> news:925B1A46-AFF4-498C-B398-C4731A16CC38@microsoft.com...
> > Hello,
> >
> > I am developing a workflow application using Workflow Desiger Ex2K. All 
> > this
> > workflow needs to do is to store attachments (PDF files) in a file folder
> > whenever a message arrives in the public folder. Is there a way to get the
> > attachments in the OnCreate event itself?
> >
> > Thanks
> > - VG 
> 
> 
>
date: Tue, 27 Dec 2005 06:06:02 -0800   author:   VG

Re: Saving Attachments in a Workflow   
Don't use DAV:href since the message doesn't exist yet in the Exchange store 
due to transacted nature.  Instead, you should be able to use the ADO 
EventRecord to get the item (I can't remember if the WorkflowSession gives 
you the ADO record as a property or not).

Otherwise, you'll have to crack the MIME stream yourself to get the 
attachments.  Doable but CDO already does this for you.

Tom

-- 
Looking for a good book on Exchange, Outlook and SharePoint?  Check out 
http://www.microsoft.com/mspress/books/5517.asp


"VG"  wrote in message 
news:2CDE7EEF-3A41-4F41-8E68-0C9A37F6A5FC@microsoft.com...
> Tom, thanks for your response. I can not open the message using CDO in the
> OnCreate event.
>
> strSource = WorkflowSession.Fields("DAV:Href")
> Set objCopyMess = CreateObject("CDO.Message")
> objCopyMess.DataSource.Open strSource, WorkflowSession.ActiveConnection
>
> This code gives me an error in the OnCreate event.
>
> Is there any other way to do this?
>
> - VG
>
> "Tom Rizzo [MSFT]" wrote:
>
>> You should be able to open the message using CDO and get the attachments.
>>
>> Tom
>>
>> -- 
>> Looking for a good book on Exchange, Outlook and SharePoint?  Check out
>> http://www.microsoft.com/mspress/books/5517.asp
>>
>>
>> "VG"  wrote in message
>> news:925B1A46-AFF4-498C-B398-C4731A16CC38@microsoft.com...
>> > Hello,
>> >
>> > I am developing a workflow application using Workflow Desiger Ex2K. All
>> > this
>> > workflow needs to do is to store attachments (PDF files) in a file 
>> > folder
>> > whenever a message arrives in the public folder. Is there a way to get 
>> > the
>> > attachments in the OnCreate event itself?
>> >
>> > Thanks
>> > - VG
>>
>>
>>
date: Sat, 7 Jan 2006 11:24:31 -0800   author:   Tom Rizzo [MSFT]

Google
 
Web ureader.com


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