web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : qNq34vk8sRklkDNEnyNbC2
Power Automate - Building Flows
Unanswered

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

Like (0) ShareShare
ReportReport
Posted on 7 Jun 2024 11:34:58 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. 
I have the same question (0)
  • abm abm Profile Picture
    32,506 Most Valuable Professional on 08 Jun 2024 at 00:53:20
    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
    12,167 Super User 2025 Season 2 on 07 Jun 2024 at 13:37:55
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 783 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 515 Moderator

#3
trice602 Profile Picture

trice602 299 Super User 2025 Season 2

Last 30 days Overall leaderboard