cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
teapong
New Member

Increment a value without using variables

Hello-

I'm building a flow that is used to add 1 to the value of an existing whole number field. Unfortunately, because the flow is supposed to list all table rows first, I can't use initialize variable (due to the apply to all loop). 

 

So how do I go about incrementing the value of this field? Is there a function I can use instead? Or perhaps a compose action? 

Thanks!

1 REPLY 1
Sundeep_Malik
Community Champion
Community Champion

Hey @teapong 

Just initialize the variable outside apply to each loop.

And then just use set variable inside the apply to each loop.

 

Sundeep_Malik_0-1663724927353.png

 

 

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,820)