Announcements
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...ODR0099...ODR0100...ODR1001....I created a WF having below steps:
It working fine till two digit ID. But the only thing I am not sure about that for 100th item will it be ODR0100 or ODR00100. If I will get ODR00100 then how to get correct one which will be ODR0100. Thanks in advance.
HeyIt will be ODR00100
What you can do is, before, inicialize a var. Empty. Than, if Id < 100, Set var to ODR00ID, else, SET VAR TO ODER0ID
Than, when you Update Item, set the ID to that var
Thanks for responding but what will happen after once id will be 1000?How to handle that?
Switch case thenId < 100 -> ORD00, 100 =< ID =< 1000 -> ORD0, ID >= 1000 -> ORD
I never used switch case. Am I doing right?
My mistake... No. Switch will not work
Use this
If you need additional help please tag me in your reply and please like my reply.If my reply provided you with a solution, pleased mark it as a solution ✔️!Best regards,Gonçalo Nogueira
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 325 Most Valuable Professional
11manish 165
MS.Ragavendar 88 Super User 2026 Season 1