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 / How to add Current Row...
Power Automate
Answered

How to add Current Row from For each loop in a List

(0) ShareShare
ReportReport
Posted on by 8

Hello!

I'm working with data tables in Power automate desktop
I'm using for each loop to iterate each row from excel data table

Now, I want to add a specific cell from the current Row of the loop

I'm trying to use activity called 'Insert Row into Datable'

This activity allow us to insert data row variable or a list that you can use putting this structure and fill it with your data: 
%[]% //List

I tried to use it, but when I add my current Row of the loop, appears a syntax error from this activity:

Gabrmora_0-1719438506650.png


I think that the problem here is that the percentages values from the list and the percentages values of the variable they get confused and don't know exactly what their match is

this is my code: 

%[%Current Row[0]%,%Current Row[1]%]%

There is a specific wildcard to avoid this or something like that?

I have the same question (0)
  • Deenuji_Loganathan_ Profile Picture
    6,255 Moderator on at

    @Gabrmora 

    Try the below approaches: 

    Method1:

     

    Deenuji_0-1719460308330.png

     

     

    Method2:

    Deenuji_1-1719460307876.png

     

     

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • Verified answer
    NathanAlvares24 Profile Picture
    1,714 Moderator on at

    Hi @Gabrmora !

     

    The error is occurring because you have put many percentage (%) signs. There should only be one pair of percentage sign: one at the start and one at the end.

     

    This is because all variables in Power Automate Desktop are enclosed in % signs.

     

    So try and correct your syntax using this:

    NathanAlvares24_0-1719461533470.png

    %[CurrentItem[0], CurrentItem[1]]%

     

    I hope this helps.

  • Gabrmora Profile Picture
    8 on at

    Yes, you're right, sometimes when we use the "{x}" button, it adds the other % percentages that belongs to the variable and that the reason of my confusion.
    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

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 632

#2
Haque Profile Picture

Haque 458

#3
Valantis Profile Picture

Valantis 357

Last 30 days Overall leaderboard