Skip navigation
Currently Being Moderated

Email Receiver QPAC: how to get filenames of attachments stored in list variable?

Apr 10, 2007 2:55 AM

Hi,

in the SDK 7.05 there's the following passage in the readme:

The updated Email Receiver QPAC allows you to extract email attachments and store them in a Workflow List variable. They will be stored as a List of Documents, which makes it easy to attach these documents to a task using the updated User QPAC.

But after I stored all attachments in a list of type Document, how do I get the attachments' orginal filenames? I wonder, if it's as simple as myDoc.getAttribute("filename") would be?

Does anyone know, how to get the filename from com.adobe.idp.Document objects the Email Receiver QPAC instantiates?

Regards,
Steve
 
Replies
  • Currently Being Moderated
    Apr 11, 2007 4:25 AM   in reply to (Steve_Woodruff)
    Hi Steve
    You should be able to index into the particular document within the list using syntax something like:
    /process_data/mylist[1]
    (Remember that xpath is 1-based, not zero-based)
    Once you have a particular document, there is an xpath function to get the filename of the document (can't remember the syntax, and don't have a running Workflow to test on, but it should show up in the XPath browser.)

    I hope this helps...
    Howard
    http://www.avoka.com
     
    |
    Mark as:
  • Currently Being Moderated
    Apr 21, 2007 4:58 AM   in reply to (Steve_Woodruff)
    Hi Steve
    You're entirely correct, my apologies for relying on my (somewhat shaky) memory, rather than looking it up.
    Please see my other post in response to this question.
    We could look at doing something to help you with this.

    Regards,
    Howard
    http://www.avoka.com
     
    |
    Mark as:
  • Currently Being Moderated
    May 27, 2007 3:50 PM   in reply to (Steve_Woodruff)
    You need to pass the property "wsfilename" to the getDocAttribute
     
    |
    Mark as:
  • Currently Being Moderated
    May 27, 2007 3:51 PM   in reply to (Steve_Woodruff)
    You need to use "wsfilename" attribute to get the filename.So Pass the "wsfilename" to the getDocAttribute method
     
    |
    Mark as:
  • Currently Being Moderated
    May 27, 2007 4:01 PM   in reply to (Steve_Woodruff)
    Hi
    The EmailReceiver doesn't set wsfilename, so you can't get it using getDocAttribute.
    If either of you would like to discuss further, please email info-at-avoka.com.
    Howard
     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)