This content has been marked as final. Show 6 replies
You should be able to index into the particular document within the list using syntax something like:
(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...
I'm sorry, I did not find the method to get the filename of a Document object.
The XPath expression builder features the following Document methods:
which works fine and returns the object's size in bytes.
which does not work because the Documents instantiated by email receiver do not seem to feature any attributes (invoking
listAttributes()on the Document objects in the list, returns a Set of length 0).
setDocAttribute(com.adobe.idp.Document, String, String)
which _always_ returns
null, even for very common files like PDF (I guess the email receiver does not call
setContentType(String)on Document objects it instantiates).
Also, invoking the document's
getFile().getName()is pretty useless, as it returns some random number like '3388160831619972562'.
What did I miss?