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 / Defining filename as a...
Power Automate
Answered

Defining filename as a parameter for Excel connection

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I am new to Power Automate hopefully I have asked my question on the right channel. 

 

I have a system developed via Power Automate. All of the flows use an Excel online sheet to read and update the necessary data. I have one test and one live file. Some of the flows has 20 excel file related steps (get a row, update a row etc.) in the flow so to run the flow with the test file I have to go through every step to change the file name and when the test is successful I have to revert the file name again. 

 

I tried to have some test records on the live file, however this time I need to change get row filters all the time before triggering the flows not to consider the live data and only to cover the test data that I have, it is not something easy to maintain.

 

I am looking for a way that I can define the filename as a variable / parameter, so to run the flow via test file I will not need to change every step to update the file name, one parameter change would be enough to switch between the live file and the test file. Is there any way of achieving this? 

 

Kind regards,

Funda

 

Categories:
I have the same question (0)
  • Verified answer
    v-litu-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    You could use Get file properties action to extract the File identifier, then append it to the File box could approach that.

    PS: The table name should append as a custom value:

    Screenshot 2021-02-02 144849.jpg

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

David_MA 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard