Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Suggested answer

Downloading the latest file uploaded in Sharepoint (urgent please)

(1) ShareShare
ReportReport
Posted on by 8
I wanna create a flow where I can download the latest file uploaded in a SharePoint using a button.  
  • MK-27071748-0 Profile Picture
    8 on at
    Downloading the latest file uploaded in Sharepoint (urgent please)
    Yes, I wish to add a button in my front end where if my user clicks it, it would download the latest file in a specific SharePoint folder. Also, file content does not appear for me as an options at the end.
  • MichaelFP Profile Picture
    1,831 Super User 2025 Season 1 on at
    Downloading the latest file uploaded in Sharepoint (urgent please)
    under the File Path you will set the Full Path of the file founded on the action "Get File Properties"
     


    What do you mean add button on the end? you mean on the canvas apps?
  • Suggested answer
    MK-27071748-0 Profile Picture
    8 on at
    Downloading the latest file uploaded in Sharepoint (urgent please)
    What goes under the file path, and File Conotent in the last step does not show up for me. Also, do I need to simply run the flow and add it to a button at the end?
  • MichaelFP Profile Picture
    1,831 Super User 2025 Season 1 on at
    Downloading the latest file uploaded in Sharepoint (urgent please)
    If you want to donwload a the latest file of a specific folder inside the canvas app when a button is selected. 
     
    The first thing that you need to do it is to create a cloud flow for the following trigger
     
     
    now inside the flow you will need to retrieve the file using sharepoint actions you gonna use the action to get the files properties, in that action can apply a filter
     

    In the properties of the action you must select your site and the folder who will take a look, on the order by and top count you will populate as the image show below
     
    No you will gonna use the Get file content using path
     
    you will include that inside a For Each action to from that get Files
     
     
    in the File Path you will gonna put the file path the file found. Remember to set the site address.
     
    After you get the content you can send back to the power apps using the action to respond to a power apps
     
     
     
    you will gonna include a output parameters as file and put the content of the file located from sharepoint
     

    Save, and open your canvas app and include that flow in the app and you can call do get the latest file.
     
    I hope that help you.
     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,609 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,946 Most Valuable Professional

Leaderboard