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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to auto increment ...
Power Automate
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. 
Categories:
I have the same question (0)
  • David_MA Profile Picture
    14,821 Super User 2026 Season 1 on at

    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.

  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    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

  • DG-18051652-0 Profile Picture
    2 on at
    Thank you @abm abm  - the video is really useful. One question posted with that video asked about atrting the ID at a fixed value - say 1000 - rather than 1. Your reply says that this would need a 'custom column to handle that'. Could you explain further?
     
    Thanks
     
    David

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 419

#2
Vish WR Profile Picture

Vish WR 314

#3
David_MA Profile Picture

David_MA 260 Super User 2026 Season 1

Last 30 days Overall leaderboard