Skip to main content

Notifications

Community site session details

Community site session details

Session Id : dCvNWEXmeT3JtYMVRHnJ/Y
Power Automate - Power Automate Desktop
Answered

How to add on additional data into another column within For Each loop?

Like (2) ShareShare
ReportReport
Posted on 15 Aug 2024 04:14:50 by 95
Hi All,
 
Currently I built a flow by comparing 2 list & get the differences values between it. 
Once I got it, i will need to add in to an existing list. 
But with the different value add-on, i would like to add a on let say column C, for each of the different value. 
I tried to run as such, but it only wrote on the first value.
 
Categories:
  • foxngn84 Profile Picture
    95 on 15 Aug 2024 at 07:23:24
    How to add on additional data into another column within For Each loop?
     
    Thanks a lot for your solution, It works !
  • Verified answer
    Agnius Bartninkas Profile Picture
    10,045 Most Valuable Professional on 15 Aug 2024 at 04:27:19
    How to add on additional data into another column within For Each loop?
    It is actually writing for each entry in the list, but in line 38 you're writing a list variable, which automatically populates all values, whereas in line 39 you're writing a single string, which only populates a single cell. Since you always write it to the same row, it just keeps overwriting the previous value, and you only get one cell populated.
     
    My suggestion is to do this:
    1. Move line 38 out of the loop - when writing a list, you don't need to do it in a loop. It's enough to write it once.
    2. Add an Increase variable action inside the loop (like the disabled one in line 40), but keep incrementing %FirstFreeRow2%. This will increase the row index in each iteration, and you'll be able to write the checkbox in a new cell for each item in the list.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard
Loading started