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 Automate / Get the most recent mo...
Power Automate
Unanswered

Get the most recent modified file (excel) in a sharepoint

(0) ShareShare
ReportReport
Posted on by

Hello,

In the path of the launch excel action, i want to set the most recent file stored in a sharepoint folder.
How can I do it ?
Thanks !

I have the same question (0)
  • Verified answer
    Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @Anonymous 

     

    You have to do like thie before reading excel file using launch excel 

     

    Nived_Nambiar_2-1681363681574.png

     

     

    1. List all files in sharepoint folder using list folder action specifying folder 

     

    2. The output of the above action is list of files sorted by last modified dates (oldest to recent one).

     

    3. So i used reverse list to reverse the list and got the recent one at first 

     

    4. Use get file content using path and then passed the below arguments 

    Nived_Nambiar_1-1681363577857.png

     

    The output of this is a binary data which need to convert to file using convert binary to file action thus converting the file data to excel file. Once it is converted, we can use launch excel to laucnh the excel and do subsequent operations.

     

     

    Hope it helps 🙂

    Mark it as solution if it resolves your query 🙂

     

  • Community Power Platform Member Profile Picture
    on at

    Hello @Nived_Nambiar 

    Sorry for my late response. Thank you it's working perfectly but is the action "Display Message" necessary ? Because I need to press 'Ok' on the message displaying. Thank you !

  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @Anonymous 

     

    No it is not necessary i add it for checking name of first file. You can ignore that.

     

     

    Kindly mark the appropriate answer as solution if it helps 🙂

     

  • Community Power Platform Member Profile Picture
    on at

    Thank you ! It's done 🙂

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard