cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dbocvan
New Member

SharePoint Infopath list to pdf

Hello,

 

I have created an InfoPath form in SharePoint, connected with a list. The form is working correctly and sends the data to the list.

 

How can I convert the InfoPath form to pdf, using power automate, saving the pdf file in a SharePoint folder?

 

Thank you!

 

David

1 ACCEPTED SOLUTION

Accepted Solutions
Jay-Encodian
Community Champion
Community Champion

Hi @dbocvan 

You can't convert the InfoPath XML file directly to a PDF as rendered within Forms Server using Power Automate.

Assuming you've mapped the data contained within the form to SharePoint list columns... you can just use the SharePoint list data interleaved in custom HTML to convert to PDF, example: https://blog.encodian.com/2020/01/convert-sharepoint-list-items-to-pdf/

HTH

Jay

View solution in original post

2 REPLIES 2
BenFetters
Continued Contributor
Continued Contributor

I'm not too sure on how to convert the infopath form into a PDF, but what you can do is create a word template, and then populate it with the data from the list using the "Populate a Microsoft Word Template" (which is a premium connector). Once you do that, you can then create a file in one drive and then convert a file in onedrive to a PDF document, and then save it in a SharePoint folder. 

 

Here's a great blog I found on how to do this, we do this at our company all the time and it works great!

 

https://flow.microsoft.com/en-us/blog/intermediate-flow-of-the-week-create-pdf-invoices-using-word-t...

 

Kind regards,

Ben Fetters

www.sovereignsp.com 

If this solved the problem for you, feel free to hit "Accept as Solution" so others can find the answer easier. 🙂

Kind regards,

Ben Fetters
Power Apps/Power Automate Developer
www.sovereignsp.com
Jay-Encodian
Community Champion
Community Champion

Hi @dbocvan 

You can't convert the InfoPath XML file directly to a PDF as rendered within Forms Server using Power Automate.

Assuming you've mapped the data contained within the form to SharePoint list columns... you can just use the SharePoint list data interleaved in custom HTML to convert to PDF, example: https://blog.encodian.com/2020/01/convert-sharepoint-list-items-to-pdf/

HTH

Jay

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (3,311)