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 Apps / Getting data from the ...
Power Apps
Answered

Getting data from the first excel file found in a folder

(0) ShareShare
ReportReport
Posted on by 6

Hello everyone,

 

I need to develop an application that is going to get the last modified .xlsx file from a SharePoint folder and verify if a given code exists in one of the columns.

This .xlsx file is always going to have the same format because it is an export from SAP. I cannot import a .xlsx file as a connection because it has to be dynamic. 

I created a Collection in order to get the first .xlsx file :

ClearCollect(ExcelFile, First(
 Sort(
 Filter(
 'Expedition Validator',
 EstUnDossier = false && 'Chemin d’accès au dossier' = "Expedition Validator/Fichiers excel/" && Lower(Right(
 ThisRecord.'Nom de fichier avec l’extension',
 4
 )) = "xlsx"
 ),
 Modifié,
 SortOrder.Descending
 ) 
));

 

This code allows me to find the file and all the metadata related to the file I would like to use the data : 


GerzStel_0-1700673705765.png


However, when I try to use the LookUp function to verify if a code exists in a column from the collection ExcelFile, it does not work at all, because it does not identifies the Collection "ExcelFile" as a Excel file.

GerzStel_2-1700673952395.png

 


How can I get the data from this file, in order to verify if a code exists or not in this excel file?

Thank you very much!

Categories:
  • Verified answer
    v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @GerzStel 

    According to your description, you are using Power Apps to get the Excel file metedata and you want to judge if this excel file contains some value in it .

    We can see that the details in the file are not available in Power Apps.
    To implement your needs, you'll need the results of Power Automate, the path of your Excel file in Power Apps, and the information about the content you want to check.
    Read the data in Excel in flow, and then make a judgment in flow and return it to Power Apps for processing.

     

    For this , you can refer to :
    Start a flow in a canvas app - Power Apps | Microsoft Learn

     

    Best Regards,

    Yueyun Zhang

  • GerzStel Profile Picture
    6 on at

    Thank you very much, @v-yueyun-msft . After quite a few attempts, I could make this work with the following actions :

    GerzStel_1-1700838279762.png

     

     

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard