Converting and Archiving InfoPath Forms to PDF using Microsoft-Flow

Microsoft has announced the retirement of InfoPath in late 2016. Ever since then, all are busy in searching alternatives for InfoPath Forms. However, I am busy finding a way as to how can I archive these forms.

So during my research I came across an excellent article http://blog.muhimbi.com/2017/01/converting-and-archiving-infopath-files.html and yes that was the solution💡. Converting InfoPath Forms to PDF with perfect fidelity using “Muhimbi Converter Service Online (FLOW)”.

In this example we will create a simple Flow that is triggered whenever a file is added to a folder in a SharePoint Online Document Library. Once added, the file is automatically converted to PDF stored in OneDrive for Business folder.

This is just an example, it can easily be adjusted to use different file services (e.g. the trigger can be for files uploaded to OneDrive, Box.com, DropBox, Google Drive or can even be used to Migrate your SharePoint On-Premise InfoPath Forms to SharePoint Online etc).

Before we begin:

• Muhimbi PDF Converter Services Online full or trial subscription Start trial
• The appropriate privileges to create PowerApps and Flows.

From a high level, the Flow works as follows:

1

Note:Converting an InfoPath form is similar to converting any other document type using the Muhimbi Actions, but – as it is needed during conversion – you need to pass in the XSN file (the file content, not the URL to it)alongside the XML file.


When File is created in a Folder: Specify the path to the SharePoint Online folder to monitor for new files.

Get File Content: Specify the path to the SharePoint Online folder where the XSN has been published.(By default it is stored in the Forms Folder(hidden) for the Forms library for which the XML is published. Please make sure the Get File Content action is used to retrieve the contents of the XSN file, do not just pass the path to the XSN file into the Muhimbi Action as it doesn’t have the privileges to read that file.

Convert document:

  • Source File name:“File name” the output from the “When File is created in a Folder”.
  • Source file content: “File Content” the output of the “When File is created in a Folder”.
  • Output Format: PDF
  • Template File: “File Content” the output of the “Get File Content”.(InfoPath XSN content).The InfoPath Template(XSN) is stored in an hidden location i.e. “Forms” Folder. The XSN path should look like https://yourdomain.sharepoint.com/sites/Sitecollectionname/Library/Forms/template.xsn.
  • Create File: Specify the path to the OneDrive folder where the converted PDF files are written to

2.png

That’s it, now publish the Flow, Create a InfoPath file to the SharePoint Online folder. A after a few moments a PDF file will appear in the OneDrive destination folder.

Article Related to Muhimbi Converter Service online: 

For more Microsoft Flow & Power-Apps – Tutorials and Blog posts, see: https://support.muhimbi.com/hc/en-us/articles/115005900168-Microsoft-Flow-PowerApps-Tutorials-and-Blog-posts

Microsoft Flow – Core concepts used by the PDF Converter, see: https://support.muhimbi.com/hc/en-us/articles/115003241308

Happy Converting 😀

 

 

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s