Forum Discussion
LaxmikantB2
Aug 18, 2021Copper Contributor
Auto generate custom ID with Prefix
WE have our default ID field in SP list. I want to use that field to create my own custom ID started with some text prefix with 0000 added to the default ID.For ex- ODR0001..ODR0002...ODR0010...ODR00...
jefmeyer
Iron Contributor
I would create a couple variables, then get the length of the ID (use length function), then using the length of the ID, pad function to prefix the ID with zeros, and then append you ODR string. What will happen when the ID reaches 10,000?
LaxmikantB2
Oct 08, 2021Copper Contributor
can you explain the function little bit more...like how to implement it...