Nintex Workflow Cloud Forum
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
The users are filling an Input start Form on NWC with attachments.
we want to generate a PDF into document template from the filled form and append the attachments provided on the form to the generated PDF as one document before sending it to the users to approve.
We are able to use docgen to generate the pdf from the form data. But can someone help and explain how can we merge the attachment files? detailed steps will be appreciated.. new to NWC.
Thank you!
Solved! Go to Solution.
@cmikhaiel_eDo you know how many attachments there will be?
@cmikhaiel_e So you will need to count the number of files, then conditionally extract the files from the collection by checking against the number of files(See Below). You will then need use the same condition to include the file in your document generation. Here is an export key for a quick sample(RKJsQWzLjz8fp5DWWSCXARPDBeqPcw4dGTmKtzyyPvfTnbtbt), you would add a condition up to the maximum number of files.
@kbarton Here is the workflow again, so you can see my example I made(RKJsQWzLjz8fp5DWWSCXARPDBeqPcw4dGTmKtzyyPvfTnbtbt). You get each file out of the collection and put it in it's own variable. Those are then conditionally merged if they exist in the Document Generation action.
@kbarton you need to know the maximum number of files, you can also make the file being merged conditional on the collection count.
@leighburke can you please send your workflow key, I am unable to open the workflow using the key in the tread.
I am trying to merge several pdfs users will be attaching in the form as one document and then place a signature in that attached document package.
Thanks in advance for your help!