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

Generate pdf from new sharepoint list item and attach it to the same item

Hello!

Is there any way of doing this?

 

When a new item is created:

  1. Generate a pdf file that collects the information of the item.
  2. Attach the generated pdf to the same item to which the information corresponds.

I already have an idea of how to generate the pdf, but I don't know how I can attach it to the same element.

 

Thank you very much in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User III
Dual Super User III

1) Use the when an item is created trigger

2) Use the information from the trigger or a get item using the ID from the trigger to get the fields you need

3) create an HTML table with the items

4) Create a PDF in OneDrive based on the HTML table

5) Add that PDF as an attachment using an Update Item action.  Use the same ID as the one in the trigger.

6) delete the PDF you created in OneDrive



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

4 REPLIES 4
Pstork1
Dual Super User III
Dual Super User III

1) Use the when an item is created trigger

2) Use the information from the trigger or a get item using the ID from the trigger to get the fields you need

3) create an HTML table with the items

4) Create a PDF in OneDrive based on the HTML table

5) Add that PDF as an attachment using an Update Item action.  Use the same ID as the one in the trigger.

6) delete the PDF you created in OneDrive



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Thank you very much for the answer @Pstork1 

Is there a way to do it without having to create the PDF first in OneDrive?

Pstork1
Dual Super User III
Dual Super User III

Not really.  The PDF has to be created in a document library somewhere, either OneDrive or SharePoint, putting it in OneDrive is usually the easiest.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
rrojas
New Member

Thanks a lot

Helpful resources

Announcements
User Groups Public Preview

Join us for our User Group Public Preview!

Power Automate User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (29,916)