Hi,
we will have two ways to recieve documents.
Either they drop a folder with a name that represents the archive number.
We convert and validate the documents and return a list of documents to the result-folder.
Or we recieve singel files and we convert/validate and return a PDF/A.
I have found one way to get the foldername by using the attrrbute - wsfilename - from the first document in the list.
We then extract the foldername from that string.
In most of the cases, it is good enough to use the %F\ as a parameter for the output-folder when we config the Watch folder endpoint.
But in some cases, we need to save the result folder some where else and that is the reason why I was looking for a way to get the name of the incoming folder.