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 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,, 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:


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.

Note: To trigger a Flow for files created anywhere in a Document Library, use the ‘When a file is created (properties only)’ trigger.

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
  • Create File: Specify the path to the OneDrive folder where the converted PDF files are written to


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:

Microsoft Flow – Core concepts used by the PDF Converter, see:

Happy Converting 😀

One thought on “Converting and Archiving InfoPath Forms to PDF using Microsoft-Flow

  1. I am now not sure the place you are getting your info, but great topic. I must spend a while learning more or figuring out more. Thanks for magnificent info I used to be searching for this info for my mission.


Leave a Reply

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

You are commenting using your 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