Hi Rob
I believe you can simply map the attachment back to the form variable, and it should just override the original one. This assumes that you are attaching the XDP file rather than an XML file to the email in your Submit button.
If the email contains multiple attachments, you can retrieve all of them. You simply add extra lines to the list of attachments. The behavior of the Email Receiver is:
- If you specify neither the name nor the mime type, it will simply find the first attachment, and insert it into the first variable, the second attachment into the second variable, etc.
- If you specify a name and/or mime type, it will look for an attachment with that name/mime-type. If it finds a match, it will insert that attachment into the specified variable. If it doesn't find a match, it will leave that variable blank, and search for the next matching attachment.
So if you know either the:
- name
- mime type
- or order
of the attachments in your email, you can find individual attachments quite easily.
The major complication is that it's quite difficult to know what the mime types and names of attachments are. This is why there is a test tab. You can use the test tab to retrieve an exising sample email, and find out what it's attachments are.
In order to use the Test tab, you have to add the javamail apis to your Workflow Designer classpath. See another thread on this issue:
Howard Treisman, "EmailReceiver Qpac testing-tab" #18, 19 Dec 2005 12:49 pmA further complication is that different email clients
may attach the same attachments with different mime-types and/or order. You just have to experiment.
I hope this is helpful.
Regards,
Howard
http://www.avoka.com