cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bren88
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?

 

Capture11.PNG

 

 

2 REPLIES 2
yashag2255
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!

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

Announcements
Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Users online (2,160)