Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

How to auto increment an id when a new item is added (calculated column)

(0) ShareShare
ReportReport
Posted on by

Hello

I am using a sharepoint list for a log and have the following columns configured:

  1. 'Category' 3 Choices, Drop Down Menu
  2. 'UniqueID' Calculated column using an IF formula (suited to lists not excel) to return a 4 digit number with a prefix of either A, B, C depending on Choice selected in Column 1 'Category'.
  3. Each time I create a new entry this works (I get the correctly prefixed 4 digit number but obviously this does not autoincrement  so the I get A0000 or B0000 continuously.)  Ideally I need the number to auto increment with each new entry by 1. 
  4. I have researched multiple solutions using Power Automate 'When an Item is created', 'Get Items'  etc. potentially using a third column 'AutoID' (Number column only) but am really struggling to configure, particularly with steps further into flow.  
  5. I am new to Power Automate - I am seeking a simple flow to enable the original 'UniqueID' calculated column to increase by 1 each time a new item is created. 
  6. If any experienced users can advise on how feasible this is and can make suggestions, I would be thrilled.  A simple solution with as detailed steps as you can would be much appreciated. 
  7. Ideally I would like the 'UniqueID' column to auto increment by 1 each time a new item is created keeping the prefix determined by the choice so A0001, B0002, B0003, C0004 etc. 
  • abm abm Profile Picture
    32,506 Most Valuable Professional on at
    Re: How to auto increment an id when a new item is added (calculated column)

    Hi @missmichelleuk 

     

    There are a few things you need to do to get this working. I made a video based on this. Please watch this and comment.

     

    https://youtu.be/IPLKk0BKwJk

     

    Thanks

  • David_MA Profile Picture
    11,744 Super User 2025 Season 1 on at
    Re: How to auto increment an id when a new item is added (calculated column)

    Is the incrementing based also on the letter as well? In other words:

    • A0001, A0002, A0003
    • B0001, B0002, B0003
    • C0001, C0002, C0003

    If you just need the numbers to sequence in order and prefix it with A, B or C, use the internal ID column of the list, it will automatically increment when an item is added to the list. If you need it to increment how I listed above, that will be rather challenging, and I am not sure there is any easy way to accomplish this.

     

    You can use the formatNumber expression to pad the ID with leading zeros.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1