Easiest way to add an Incrementing ID column on lists?

Copper Contributor

Hi what's the easiest/cleanest way to add a custom incrementing ID column to a list?

 

ive created a list to manage customer information and if possible would like a customer ID column

Ex CUST10001, CUST10002 & also be able to start the number sequence at 10000 instead of 1...

 

is this possible?

 

Kind rgds

1 Reply

@Charlie Jones

One way is to user PowerAutomate. You could create another list with one item that contains the next ID to use: ex: 1000.

Then when a new customer is created, you will have a flow that will be triggered, it will look at the ID in the other list and generate the Customer ID. You will update the customer items and then increment the ID in the other list.

So when someone will create a new customer, they will only see the Customer ID after it is created when the flow will execute.

To avoid concurrency issue (someone else create a new customer at the the time your flow get the ID and increment it), you could implement a lock mecanism in the list that contains the ID but maybe this is not relevant in your case.

 

The other way is to use a remote event receivers instead of PowerAutomate that provides more flexibility but need some skills with the concept.