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 / Issue Using New File I...
Power Automate
Answered

Issue Using New File Instead of Old One

(0) ShareShare
ReportReport
Posted on by 2
I have a manual trigger flow that takes an excel file that is stored on SPO each week and merges (updates or creates a new record) in an existing SPO list. Currently, I use the 'List rows present in a table' step to pull the file + table using the dropdown navigation for the file and table section. In this example, let's call it 'project.xlsx' with the table name 'report'.
 
The next step, I start my apply to each loop and the rest of the flow works great. The SPO list gets updated properly and the flow works. Afterwards, I manually update the file name by adding a timestamp at the end and move it into an Archive subfolder in that location. The next week, we get a new file with the same original name, project.xlsx, in that original folder location with the same table name. However, when I run the flow it seems to still reference the old file even though I changed the file name and moved it to a subfolder. This leads me to believe the List rows present in table step is instead using the file id instead of the actual name I specified in the step. If I remove that step and recreate it, the flow works correctly and uses the new weekly file. 
 
How can I fix this flow so that it will always use the new file that comes in each week instead of seemingly referencing the same old file?
Categories:
I have the same question (0)
  • Verified answer
    Chriddle Profile Picture
    8,459 Super User 2025 Season 2 on at
    When you select the file in the dropdown, you are using the file id. This id does not change when you move the file.

    Instead, use the Sharepoint action "Get file metadata using path" and use the returned "id" (and add the table name as a custom value):

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
David_MA Profile Picture

David_MA 245 Super User 2025 Season 2

#2
Expiscornovus Profile Picture

Expiscornovus 207 Most Valuable Professional

#3
trice602 Profile Picture

trice602 185 Super User 2025 Season 2

Last 30 days Overall leaderboard