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

 

 

1 REPLY 1
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!

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Users online (3,173)