web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Generate pdf from new ...
Power Automate
Answered

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

(0) ShareShare
ReportReport
Posted on by 12

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.

Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    69,383 Most Valuable Professional on at

    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

  • rrojas Profile Picture
    12 on at

    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 Profile Picture
    69,383 Most Valuable Professional on at

    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.

  • rrojas Profile Picture
    12 on at

    Thanks a lot

  • Musky1 Profile Picture
    5 on at

    How do you use the Update Item action to add an attachment in a flow?  I do not see any functionality for adding an attachment to list item using the Update Item action.  Can you describe or show exactly how you add an attachment in the Update Item action?

  • Pstork1 Profile Picture
    69,383 Most Valuable Professional on at

    Sorry, I referenced the wrong action in step #5.  You use the Add Attachment action to add the Attachment to the list item after you have used Update Item to make any necessary changes to the Item properties.

    image.png

  • NN-21081740-0 Profile Picture
    492 on at

    Hi There

     

    I also need assistance with something similar, but also add the attachments from that list item.

     

    It's been a week trying to get someone who can help me.

     

    Thank you.

  • Pstork1 Profile Picture
    69,383 Most Valuable Professional on at

    Please post this as a new question.  You'll get more responses and others will be able to find the answer more easily later. Send me a link to the new post and I'll try to help there.

  • AzeraD Profile Picture
    3 on at

    Hello, would you mind sharing the flows of how to generate the pdf based on the selected item in sharepoint list?

  • Pstork1 Profile Picture
    69,383 Most Valuable Professional on at

    Please post this as a new question.  You'll get more responses and others will be able to find the answer more easily later.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 813

#3
Haque Profile Picture

Haque 526

Last 30 days Overall leaderboard