cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Nintex Newbie

How to merge files in NWC workflow from Form attachments?

Jump to solution

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!

Labels: (3)
0 Kudos
Reply
14 Replies
Highlighted
Nintex Employee
Nintex Employee

Re: How to merge files in NWC workflow from Form attachments?

Jump to solution

@cmikhaielDo you know how many attachments there will be?

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: How to merge files in NWC workflow from Form attachments?

Jump to solution
No, but they shouldn't be too many attachments, probably 2-5 attachments.
0 Kudos
Reply
Highlighted
Nintex Employee
Nintex Employee

Re: How to merge files in NWC workflow from Form attachments?

Jump 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(RKJsQWzLjz8fp5DWWSCXARPDBeqPcw4dGTmKtzyyPvfTnbtbt), you would add a condition up to the maximum number of files.

Nintex Workflow Cloud _ Dashboard.png

 

View solution in original post

Reply
Highlighted
Nintex Newbie

Re: How to merge files in NWC workflow from Form attachments?

Jump to solution
@leighburke, can you elaborate more on how to merge the attachments to the form created. I am using a loop action to gather all my attachments, but I don't follow how to attach that to the document template I created for my form.
0 Kudos
Reply
Highlighted
Nintex Employee
Nintex Employee

Re: How to merge files in NWC workflow from Form attachments?

Jump to solution

@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. 

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: How to merge files in NWC workflow from Form attachments?

Jump to solution
Thanks @leighburke. I didn't see that option when I was playing around before. So basically you count the collection to see how many attachments you have. Would have to assume a set number in order to populate the template though right?
0 Kudos
Reply
Highlighted
Nintex Employee
Nintex Employee

Re: How to merge files in NWC workflow from Form attachments?

Jump to solution

@kbarton you need to know the maximum number of files, you can also make the file being merged conditional on the collection count.

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: How to merge files in NWC workflow from Form attachments?

Jump to solution
@leighburke, works perfectly. Thanks for explaining and the example.
0 Kudos
Reply
Highlighted
Nintex Newbie

Re: How to merge files in NWC workflow from Form attachments?

Jump to solution

@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!

0 Kudos
Reply