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 / Saving files to folder...
Power Automate
Unanswered

Saving files to folder created during flow

(0) ShareShare
ReportReport
Posted on by 7

Hello. I am new to Power Automate Desktop and trying to figure out how to save a file to a specific folder that was created at the beginning of my flow.

The flow creates a folder with the today's date then it creates three sub folders. It then goes to a powerbi url, runs and downloads the data set. I need it to be saved into the sub folder created previously in the flow.

I thought I could just call the flow variable and follow that with a \filename.xlsx but the flow variable doesn't write to the field, so it errors out.

Any help is greatly appreciated. thank you.

I have the same question (0)
  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    If you have a folder stored in %Folder% by your Create folder action you could use %Folder.FullName% to get the full path to the folder. The %Folder% variable is an object that contains some parameters, so it might not work very well when writing to a UI field. But %Folder.FullName% should work. You will clearly need to add \{FileName}.{Extension} at the end of it, as you correctly assumed.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • Kaif_Siddique Profile Picture
    2,108 Super User 2024 Season 1 on at

    Hi,

     

    Try Move file(s) or Copy file(s) action to save a file in specific folder after file download.

     

    If this does not work, share flow screenshot.

     

    Regards

    Kaif

  • Serafin54 Profile Picture
    7 on at

    I tried this but it did fail out on me stating the folder does not exist. I just can't understand why this would be so difficult. If you are creating a folder within a flow, you would obviously be creating a new folder each time_ and then saving to that very location each time.  I tried to create as an input variable but the text obviously was "%Folder.FullName%" instead of the variable itself. Unless I am not comprehending your suggestion. 

     

  • Serafin54 Profile Picture
    7 on at

    Unfortunately this does not work since the file is being downloaded from a browser, even with a Wait until file is created step added, it just wants to move to the next step and thus fails.

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    You are clearly doing something wrong there. It is generally quite simple. Can you share some screenshots of your flow? Specifically - the part where the folder is created and the part where you want to use it to download the file.

  • Serafin54 Profile Picture
    7 on at

    So I completely figured it was a "me" issue but then I rebuilt the flow but using Edge instead of Chrome and it works without fail. The Edge Save As window will accept the value of the variable whereas the Chrome window in this example with just fill in the field with "\PBI_Prod1.xlsx".

    While Edge does have some quirks I needed to bypass (such as the UI Element window for the Save As Download dialog not recognizing the UI Button but that was fixed through the elements screen), I am at least able to save the file to my folder now. I am curious why this would be.

     

    Edge.png
    Create.png
    Chrome.png
  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Have you tried writing %Prod1Folder.FullName%\PBI_Prod1.xlsx into your Populate text field in window action?

    Also, can you try right-clicking the %Prod1Folder% variable in the variables list on the right side of the PAD designer screen and clicking "Find usage" to see where the variable is used? Perhaps you were overwriting it somewhere, or maybe not really storing the folder there?

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

     

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 1,005

#2
Valantis Profile Picture

Valantis 825

#3
Haque Profile Picture

Haque 619

Last 30 days Overall leaderboard