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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Downloading the latest...
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.  
Categories:
I have the same question (0)
  • MichaelFP Profile Picture
    1,847 Super User 2025 Season 2 on at
    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.
     
  • Suggested answer
    MK-27071748-0 Profile Picture
    8 on at
    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,847 Super User 2025 Season 2 on at
    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?
  • MK-27071748-0 Profile Picture
    8 on at
    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.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard