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 / First .xls in folder a...
Power Automate
Suggested Answer

First .xls in folder and upload to Sharepoint

(1) ShareShare
ReportReport
Posted on by 70
Hi everyone, 
I have several .xls files in a folder on my c:\users\desktop\test drive. I want to get the latest .xls file in this folder and convert this to .xlsx to upload it to Sharepoint. My first step is get files in folder but the second step to filter the newest file[0] is not working. Could you please send me the steps?
Would be very helpful, thank you.
2024-09-17 16_06_05-Power Automate _ Sentinet to Sharepoint.png
I have the same question (0)
  • Suggested answer
    eetuRobo Profile Picture
    4,572 Super User 2026 Season 1 on at
    I think that Files[0] is for regular Power Automate Desktop flow not for Power Fx flows. Also just to get the first Files item is not enough since that just gives you a list of properties. You need to give file path to the "Convert file to binary data". So use FullName -property.

    Since you have Power Fx enabled you can use =First(Files).FullName

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 233

#2
David_MA Profile Picture

David_MA 217 Super User 2026 Season 1

#3
Valantis Profile Picture

Valantis 190

Last 30 days Overall leaderboard