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.
Solved! Go to Solution.
@cmikhaiel 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(PYjjQWkL29LHuMaVCSeabX6QJfrpJgMsRtmHwQW36Za2DX9TY), 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(khEHTFjQaiyYCHdNs7MoYNPSMMFZK7fdqy13GkzUp1SV2gkLr). 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.