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 / Increment ID column fo...
Power Automate
Answered

Increment ID column for multiple Rows

(0) ShareShare
ReportReport
Posted on by 9

Flow to develop :

1. Upload a excel to sharepoint ( col : id, name, status)

2. convert the excel into table

3. Read the rows from excel

4. Append all the rows of new excel in pre exisiting Master table. In doing this I want to update/increment the ID column based on previous data

 

Step 1,2 and 3 is done

AyushPriyadarsh_0-1704994779024.png

 

In step 4 , I am facing issue : if in my already exisiting data, the last row id is 4 and I am appending 2 more rows then both of my rows ID are showing 5 instead of 1st row to be 5 and 2nd row to be 6. I tried adding a delay also but it doesnt work

 

AyushPriyadarsh_1-1704995010669.png

 

Using output of compose in add a row into table

 

 

Help would be appreciated.

 

Thanks,

Ayush

 

 

 

 

Categories:
I have the same question (0)
  • v-yueyun-msft Profile Picture
    on at

    Hi , @AyushPriyadarsh 

    If possible , can you try to close the Split on in the trigger's setting to test:

    vyueyunmsft_0-1705027665505.png

    And you need to use the Apply to each action to loop to add a row in your table.

     

    Best Regards,

    Yueyun Zhang

  • Verified answer
    AyushPriyadarsh Profile Picture
    9 on at

    Hi @v-yueyun-msft ,

    Thanks for the response, but I found the solution. 

     

    Instead of finding the last row of my Master table inside the loop, I did that outside the loop and assigned to a variable "maxID" and then used increment variable property inside the loop.

     

    AyushPriyadarsh_0-1705132927775.png

     

    This did the work for me 🙂

     

    Regards,

    Ayush Priyadarshi

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 315 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 273 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 117 Super User 2026 Season 1

Last 30 days Overall leaderboard