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 / automate saving of mul...
Power Automate
Unanswered

automate saving of multiple files with given name

(0) ShareShare
ReportReport
Posted on by 16

Hi everyone,

I would like to save multiple files using a for each loop that iterate over a list of name (stored in an Excel file) to assign  names to these files; it' s possible? how?

 

Thank you in advance.

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Yeah:

    Launch Excel

    Read from Excel (get the text of the filename into a variable)

    Rename files

  • NovaEco Profile Picture
    16 on at

    Thank you for your quick reply, can you kindly share an example code?

    Thanks in advance.

  • NovaEco Profile Picture
    16 on at

     I can' t understand how it s possible to iterate over list of name to save different files with the list's names.

  • VJR Profile Picture
    7,635 on at

    Hi @NovaEco 

     

    Can you share complete details of the requirements.

    Screenshots, more in depth details would help.

     

    - You are having the list of names in an Excel file.

    - Which files do you want to rename and rename by what names?

     

     

  • NovaEco Profile Picture
    16 on at

    Page 1 script.pngPage 2 script.pngAs you can see from the screenshot, I would like to iterate the "read from excel worksheet" option from A2 to AA2. The single cells contain text. The text needs to be copied in a browser ("Populate text field in window"). After the button "invoke" is selected, I have to copy the text that is shown on the browser in an XML file that has been already created in a folder. But the issue is that I have a different XML file per each iteration. 

    I hope I was clear enough. 🙂
    Thanks in advance for your help

  • NovaEco Profile Picture
    16 on at

    Someone can help me? 

  • VJR Profile Picture
    7,635 on at

    But the issue is that I have a different XML file per each iteration.

     

    You can always pass a variable with a different Xml each time in the Write xml to file action.

  • NovaEco Profile Picture
    16 on at

    I don' t understand, could you kindly make an example?  

  • NovaEco Profile Picture
    16 on at

    I would like to solve this problem with a for loop, someone can help me please?

  • ryule Profile Picture
    929 Super User 2024 Season 1 on at

    It sounds like you need to run this 27 (A2 to AA2) times, so you can do a regular Loop, and use the loop index to get your column, and then throw all of your steps into the Loop, that way, once it's finished with one, it'll go back to the top, read the next column's value, then repeat.

     

    ryule_0-1659969644853.png

     

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 132

Last 30 days Overall leaderboard