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 / Send the whole flow in...
Power Automate
Answered

Send the whole flow in a loop but change the image

(0) ShareShare
ReportReport
Posted on by 12

Hello Guys,

 

I´ve created a flow to render different mockups. The first step is to go to a website, click on upload a image file and then click pn upload. After that I choose 7-8 different mockup styles and click render. In each step I download the mockup. That is the flow for 1 image.

Now I want to loop that flow but with the next image in my folder on my desktop and I want to loop the whole flow until all images are choosen.

 

In attachment you´ll find my flow.


Thanks in advance

 

Aiq184_0-1700574337176.png

 

I have the same question (0)
  • UshaJyothiKasibhotla Profile Picture
    225 Moderator on at

    I assume that images on folder 

    First use get files in folder activity 

    Then loop through them using for each activity 

    Then for each image you can do the actions you need to process 

     

    Hope this helps

    Usha.

  • Aiq184 Profile Picture
    12 on at

    Hello Usha,

     

    thanks for your reply. I managed to create a whole flow, but the issue with the images is still there.


    You´re right, I´ve a folder with 50 images. I added the option Get files, but how to choose the 2nd,3rd,4th and so on after the 1st image was rendered. The whole stops after the 1 image.


    Do you have an idea how to sende all images step by step into the flow?

     

    Ali

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    When you use Get files in folder, it returns a list of files in a variable called %Files%. You can then use a loop, like the For each loop to iterate through the list of files. When you use For each, it will have a temporary value for each iteration stored in %CurrentItem%. Use that as the file of the current iteration in your flow and it should work.

    -------------------------------------------------------------------------
    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.

  • Aiq184 Profile Picture
    12 on at

    Hello Agnius,

     

    thank for the reply. I tried to modify my Flow according to your description. But how can I choose a file after Flow 5?

     

    Aiq184_0-1700762780548.png

     

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Put all the steps of your flow that should be repeated inside the loop. Then wherever you should target a single file, use %CurrentItem% as the file to be picked up.

    -------------------------------------------------------------------------

    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.

  • Aiq184 Profile Picture
    12 on at

    But which action do I need to choose to get %CurrentItem%?

     

    Sorry but I´m a absolute newby

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    The For each loop already creates a %CurrentItem% for you. Now use it in the action where you previously were typing in a fixed file path. I can't tell which action it is, as it's quite difficult to figure that out from your screenshots and the description.

  • Aiq184 Profile Picture
    12 on at

    Hello Agnius,

     

    it worked! Thank you very much for this. Now I have a final issue. After I click on save and add a name like Case123 I save the image. AFter that I added a flow which renames the file and adds a _1 after Case123_1. The issue is it only creates this sequence for the 2nd image. FOr the 3rd it asks if I want to overwrite the file.

     

    Can you please help me with that issue.

     

    Regards

    Ali

    Aiq184_0-1700856973957.png

     

  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    That is because you are probably doing this in a loop where %RenamedFiles% only contains a single file. When you do it like that, the sequential functionality will not work. It only works when the target is a list of files.

     

    Instead of making it sequential in Rename file(s), you should try to have a separate variable (like an index) that you start at 1 by using Set variable before the loop starts, and then increment by 1 by using Increase variable at the end of the loop. Then use this variable when renaming the files.

    -------------------------------------------------------------------------
    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.

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @Aiq184 

     

    I think you should try like this , this will add _1 to all files 🙂

     

    Nived_Nambiar_0-1700975722131.png

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 411

#2
David_MA Profile Picture

David_MA 300 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 291

Last 30 days Overall leaderboard