Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Create a file from a SharePoint item.

Like (0) ShareShare
ReportReport
Posted on 12 Mar 2021 14:15:30 by 39

Hi Everyone. I'm wanting to create a file from a SharePoint item that is then saved to a folder on SharePoint and then emailed to a user. I've followed a YouTube video that suggests using the 'Select' block and choosing the 'Value' of the SharePoint Item to then create a HTML table, to then be saved, then converted to a PDF, then emailed.

 

I'm using the ID of the item as the input of the Select as I can find anywhere that says Value but to be fair the YouTube video looks like it's using older connectors so maybe these have been updated?

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on 15 Mar 2021 at 17:00:44
    Re: Create a file from a SharePoint item.

    @deanking , you can configure the actions as shown in below steps:

     

    1. Use Get Item to get item properties and create document content as shown below using compose action. Also name the actions as per the screenshot 

    annajhaveri_1-1615827334977.png

     

    content for compose action

    Title: @{outputs('Get_item')?['body/Title']}
    <br />
    Status: @{outputs('Get_item')?['body/Status']}
    <br />
    ID: @{outputs('Get_item')?['body/ID']}

     

    2. Add another compose action and configure following content in the compose action

    <!DOCTYPE html>
    <html>
    <head>
    </head>
    <body>
    @{outputs('Compose_-_Document_Content')} 
    </body>
    </html>

     

    3. Now add Create File (onedrive) action and configure it as follows, (you can use any filename here)

    annajhaveri_2-1615827499238.png

     

    4.  Add "Convert file using path" and configure it as follows (Use path parameter from dynamic content of Create File)

    annajhaveri_3-1615827515544.png

    5. Then in Send Email action configure the file attachment of PDF file as shown in below screenshot 

    annajhaveri_4-1615827630373.png

     

     

  • JisungHan Profile Picture
    on 15 Mar 2021 at 09:18:49
    Re: Create a file from a SharePoint item.

    Hi @deanking ,

     

    If you get the record values then you may create HTML and convert it to PDF. 

     

    I think it would be better to specify your block point and let us provide a solution/advice. Would you please share a screenshot you want to solve?

  • deanking Profile Picture
    39 on 12 Mar 2021 at 15:46:18
    Re: Create a file from a SharePoint item.

    Yeah.

     

    Ideally I want all of the columns of the item to be listed on a document like below:

     

    Learner Name: [Learner Name from item]

    Employer: [Employer from item]

    Test: [Test from item]

    Date: [Date value from item]

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on 12 Mar 2021 at 15:40:02
    Re: Create a file from a SharePoint item.

    @deanking  so you want to get values of all columns of that specific item and create a PDF document of those values?

  • deanking Profile Picture
    39 on 12 Mar 2021 at 15:17:40
    Re: Create a file from a SharePoint item.

    Hi.

     

    Thanks for the response. I'm using the 'For a Selected Item' and then 'Get Item'. 

     

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on 12 Mar 2021 at 15:14:28
    Re: Create a file from a SharePoint item.

    @deanking how are you getting the SharePoint items in flow? Are you using Get Items action?

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2