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 / Apply to each adding t...
Power Automate
Unanswered

Apply to each adding the index loop value to each record

(0) ShareShare
ReportReport
Posted on by 1,168
Hi,
 
I have an Apply to each that has an add a new row (dataverse).
 
In each new record there is a column that requires a number starting g at 1 and incrementing by 1.
 
Its been suggested to use the loop index but I can't work out how to do that.
 
If someone could show me an example of what this looks like? I presume its an expression.
 
Thanks in advance
 
Todd
Categories:
I have the same question (0)
  • Srini007 Profile Picture
    3,451 Super User 2026 Season 1 on at
    Hi @Tango,
     
    For this case you can follow below steps
     
    • Outside of the Apply to each action, Initialize a variable of type Integer., Let say Counter
    • Now inside the Apply to each action, you can use Increment variable action, select Counter and give 1 to increment
    With the above steps whenever the loop runs it will increment the Counter variable as well
     
    If I have answered your question, please mark it as the Answered. If you like my response, please give it a Like.
     
    Regards,
    Srini

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 339 Super User 2026 Season 1

#1
trice602 Profile Picture

trice602 339 Super User 2026 Season 1

#3
David_MA Profile Picture

David_MA 270 Super User 2026 Season 1

Last 30 days Overall leaderboard