cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rrojas
Regular Visitor

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

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

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.

Thank you very much for the answer @Pstork1 

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

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
Regular Visitor

Thanks a lot

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (3,979)