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 / Using variable when sa...
Power Automate
Suggested Answer

Using variable when saving file in the file name

(0) ShareShare
ReportReport
Posted on by
Hi
I have a workflow where I extract data and want to save each data object into its own excelfile. 
So I have a Variable FileName and want to use it when I save my excel file. I have tried to search around and understod I should have the file path as "C\Excel folder\%FileName%.xlsx"

Problem I get is that the excel file is save as %FileName% instead of the value of the variable. How should I write the document path to get the value of the variable into the file name?


 
 
I have the same question (0)
  • Suggested answer
    eetuRobo Profile Picture
    4,484 Super User 2026 Season 1 on at
    %variableName% -syntax is in default PAD flows. You are using Power Fx enabled flows. Power Fx never uses percent signs for variables.
    For Power Fx it either =VariableName or ${VariableName}

    In your case use the following: C:\Excel Extract\${FileName}.xlsx

    I recommend using the PADs "Select variable" option to get the correct syntax. So put the cursor where you want the variable to be and click the variable icon and then select the correct variable


     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard