web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to add on addition...
Power Automate
Answered

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

(2) ShareShare
ReportReport
Posted on 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.
 
I have the same question (0)
  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at
    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.
  • foxngn84 Profile Picture
    95 on at
     
    Thanks a lot for your solution, It works !

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard