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

Migrating Attachments from Infopath Form to Document Library

SharePoint/Nintex Environment: O365

Library Type: Forms Library

Form Template Type: InfoPath 2013

I am looking to migrate attachments that are being stored in my InfoPath form that is sitting on a SharePoint O365 Forms Library.

I have seen this question asked over and over and I don't think I have found a straightforward answer.

I have a rather complex form that collects attachments (among other data that is unrelated to this question). We have 'recently' hit the issue of attachment size limits (5MB). My current work around is to have the end user upload the document to a document library in the same site and then copy/paste the link in the form (These attachments are being collected via a repeating table).

The request from my client is to remove the end user responsibility of uploading/copying/pasting the document information and instead make the workflow (or form, whichever) do it for them. I don't find this a strange ask, but I have encountered some issues.

  • This process cannot change from a Forms Library to List because of the nature of the process and the complexity of the form.
  • There are not a set number of attachments that will be attached to any given form, so I cannot lock down/restrict the number of attachments allowed (to hard code into the workflow).
  • I have been able to create a folder in the destination document library and I can isolate some information which appears to be directly related to the attachment(s) in the form, but its just letters & numbers.
  • The client does not current have/utilize Azure

Is there a way to make a Nintex O365 workflow do this or possibly a way to embed a control in my InfoPath form that connects directly to the library?

At this point I have the can of gasoline and a handful of matches on deck. Any help is GREATLY appreciated!

0 Kudos
2 Replies
Nintex Newbie

Re: Migrating Attachments from Infopath Form to Document Library

What is the intention for the InfoPath forms when they are migrated - or will this be an on-going process?

I am migrating solutions from on-prem 2013 InfoPath Browser forms to Nintex 365. (By migrating, I mean re-building).

In most cases, the historical data is required by our internal customer, so we have to migrate the closed forms to somewhere on the new site - where they can be referred (opened in InfoPath browser form, read-only).

I am working on a few of these now. I completed one of these last year and it went fine.

I migrated the forms pretty much like I would on-prem - publish the form to the 365 site, creating a form library with the same columns as the original. Then I manually copy the files using the file explorer.

As you can guess, this is fine for a one-off. But not for an on-going process.

0 Kudos
Nintex Newbie

Re: Migrating Attachments from Infopath Form to Document Library

It's actually for documents attached to the InfoPath form using an attachment field. The form is on a forms library so I don't have the fancy 'Attachments' folder in SPD that I can pull them out of.

Once my end user attaches a document to an InfoPath form, the document (attachment) is encoded and stored as data with the form. The only way to access the 'attachment' after that ends up actually downloading a copy from the InfoPath form. I am looking to DEcode the attachment through the workflow to get to the document (skipping the download step), and then 'upload' it to a separate document library. What's left would be a form with data (minus attachments) in the same form library it started in, and the attachments in a different document library.

This is something I need to do as an on-going process, and even probably run on past (closed) forms as well. I submitted an actual ticket and received this response:

"I'm not sure there will be any easy way to resolve that. It looks like it may require custom coding in order to achieve what you are trying to do.

I'll see what else I can find, but I'm not sure there will be an out of the box solution."


I'm trying to see if I can use either of these solutions in my client's environment.

0 Kudos