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 II
Dual Super User II

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!

Not applicable

Hello @yashag2255 ,


May you share your solution with images? I have to generate PDF from my SharePoint List but still I haven't. 


Thank you for your interest.

Helpful resources

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.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (2,237)