I've created a very simple process in Workbench using Output to merge XLM and XDP files and generate PDFs.
Everything is woking fine, but as I get dozens of XML and generate the same number of PDF files.
I'm using WriteDocument service operation from FileUtilsService (Foundation) to save the files and I marked the Append a suffix to the file name to make it unique if it has been used option.
It works, but the suffixes appended to the file names are random numbers.
I need to name the files in sequence - how do I do it? Do I have to add any other block to this process?
Thank you for any hints!
You will have to create your own counter and use a function to concatenate the file name with your counter before you pass it as a parameter to the Write Document function.