Showing results for 
Search instead for 
Did you mean: 
Helper II
Helper II

Export sharepoint list to a pdf file

I need to export a sharepoint list to a pdf file in a table format like the following:

*see sharepoint data type for each column


What is the best way to do this?





Dual Super User
Dual Super User

Re: Export sharepoint list to a pdf file

Hi @bren88 


You can follow the steps below: 

1. Trigger Flow

2. Initialize a variable of type array

3. Get items from SharePoint

4. Apply to each item, 

5. Append to array variable action: (create JSON with columns required to be sent in the table)


"Column Name1" : "Select column from dynamic selector",

"Column Name2" : "Select column from dynamic selector"


6. Outside the apply to each loop: Create an HTML table (with the array)

7. Create a file in onedrive (temporary file) with the name and format as .html and pass the outputs of the create html table in the file content

8. Action to convert file (from the onedrive connector) select the file from the above action and target type is PDF

9. Finally add the action to send email and add the pdf content to the attachment. 


Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Helpful resources


Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (8,630)