to use an attachment in a special field of a document at another place, i need to calculate the complete URL to that i.e.:
I'm able to extract the attachment name in a Field with SSJS:
var alist = document1.getAttachmentList("Field");
var alisti = alist.iterator();
return "...documentID.../$FILE/" + result
The problem is, that the real attachment name somtimes is substituted (as seen in the example above).
My question is:
How can i get the substitute name of a specific attachment ??