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 Current Row...
Power Automate
Unanswered

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,250 Super User 2025 Season 2 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

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard