Skip to main content
Community site session details

Community site session details

Session Id : Hu9LXQte5mYi97m1pY/EGt
Power Automate - Building Flows
Answered

Dynamic file path to get Excel workbooks

Like (0) ShareShare
ReportReport
Posted on 10 Nov 2020 18:10:16 by

Hi guys

 

I am fairly new to Power Automate and I'm currently just playing around with the capabilities of Flows.

I'm trying to create a Flow that is applicable to multiple different Excel workbooks with similar, but slightly differing names.

I read online that the Excel 'Get workbooks' step does not take a mixture dynamic content and strings in it's 'File' entry field, so I created a string variable to generate the file path, and then I places that variable into the Excel step, as show below:

 

Capture.PNG

 

However, when I run the flow, I get an error message that doesn't seem to make sense:

 

Capture1.PNG

 

I have double, even triple-checked, and the file with that EXACT name (case sensitive) in the given path exists. I am at an ends as to what to do from here.

Any help or suggestions would be thoroughly appreciated.

  • Verified answer
    ChristianAbata Profile Picture
    8,949 Most Valuable Professional on 10 Nov 2020 at 20:00:52
    Re: Dynamic file path to get Excel workbooks

    hi @xavierpamment  what you need is not a path is an ID. so you can follow this blog that shows you how to get the ID from a file using HTTP sharepoint API request. see

     

    https://powerusers.microsoft.com/t5/Power-Automate-Community-Blog/Power-Automate-How-to-access-Excel-with-a-dynamic-path/ba-p/462763

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete