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 / Reading Excel data fro...
Power Automate
Unanswered

Reading Excel data from latest Excel in SharePoint folder

(0) ShareShare
ReportReport
Posted on by 109

I'd like to be able to read data from a Excel file moved (as an attachment) into a SharePoint folder.

 

I don't have any issues with the part of the flow that processes the Excel data. What I cant figure out is how to detect when a file is placed in that folder, and then to read from it. Is that possible?

 

If not, is it possible to read (via List rows present in a table) from the newest file in a SharePoint folder, if manually triggered?

Categories:
I have the same question (0)
  • AndreasN Profile Picture
    318 Super User 2024 Season 1 on at

    I'm trying to understand, your issue is to register when a file is created in your sharepoint folder?

     

  • bd528 Profile Picture
    109 on at

    I need to either :

     

    • trigger a flow when a file is moved to a SharePoint folder (prefered) 
    • manually trigger a flow and read from the newest Excel file file in a SharePoint folder
  • AndreasN Profile Picture
    318 Super User 2024 Season 1 on at

    Okay, well luckily Power Automate already have an automated trigger for when files are moved to a folder. 
    I would use the "When a file is created", as moving the file to the folder will trigger it.

    Now, I assume you have multiple files in that folder, and one of the issues is having the system recognize which file is the newest. I would apply metadata to the files in sharepoint for this. Create a property column and call it whatever you want, lets assume you call the column "Property Status". 

    Make sure the property column is a choice column, I would apply these two choices:

    "Not Read" / "Read".

    Create the flow using the trigger I mentioned, and apply the necessary actions in the flow. When you use the "Get files" command, make sure you apply the filter query expression as follows:

    PropertyStatus eq 'Not Read'


    Remember to set the default value of the column, to be "Not read" so that metadata is applied to the file, as soon as it is moved into the folder.

    This ensures that only the documents the system has not read, is the ones you're asking it to find. Then do whatever, the flow needs to do and end the flow with a "Update file properties", and change the "Property Status" value from "Not read" to "Read". that way, everytime the flow runs, it dynamically filters all the documents that has already passed through the flow, and only gets the newest document. 

    I hope this makes sense, otherwise feel free to ask.

    best regards - AndreasN

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard