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 create a auto i...
Power Automate
Answered

How to create a auto increment number based on previous value in the sharepoint list using power automate?

(0) ShareShare
ReportReport
Posted on by 23

Ex: SharePoint list have 3 items

Id  title      Custom column

1. Apple     xx001

2. Ball        xx002

3. Cat        xx003

 

Now i deleted 3.Cat item.... If i create a new item in sp list the id will be 4 but the custom column should be xx003.

preview : 

Id  title      Custom column

1. Apple     xx001

2. Ball        xx002

4. Doll        xx003

5. Eat        xx004

 

I don't want to miss the sequence.

Can any one try to figure out the solution?

@RezaDorrani 

Categories:
I have the same question (0)
  • Verified answer
    abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @Anil_kumarr 

     

    Follow the below steps.

     

    1. Get the last list item order by created on date desc and top count 1. This will give you the latest record.

    2. Get the custom column value from step 1.

    3. Here based on the above example data (xx001/xx002/etc) you had given you can use the substring() expression to get the last 3 values. 

    4. So from step 3 we get the numeric value and increment to 1.

    5. Next use the incremented value for your next custom column.

     

     

  • Anil_kumarr Profile Picture
    23 on at

    Thank you for the suggestion.

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

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard