How to enable auto numbering to 2nd field?

Test232
Mega Expert

I need to enable the auto numbering to another field other than number. We have already number field available for auto numbering and now we have custom field SIM ID and we need to enable auto numbering like SIM0001.

I have tried to do it by storing value 00001 in system property and getting the value every time from property and incrementing it. But the output is coming like SIM1, SIM2, SIM3,... I need the format like SIM0001, SIM0002, etc.

Can you help me how to configure this? @Ankur Bawiskar @Mark Roethof @AMAN kUMAR @Allen Andreas @Sandeep Dutta 

1 ACCEPTED SOLUTION

Aman Kumar S
Kilo Patron

Hey,

You can refer to below community article by @Jim Coyne 

Creating a Custom Auto-Number Counter

 

Feel free to mark correct, If I answered your query.

Will be helpful for future visitors looking for similar questions 🙂

Best Regards
Aman Kumar

View solution in original post

4 REPLIES 4

Aman Kumar S
Kilo Patron

Hey,

You can refer to below community article by @Jim Coyne 

Creating a Custom Auto-Number Counter

 

Feel free to mark correct, If I answered your query.

Will be helpful for future visitors looking for similar questions 🙂

Best Regards
Aman Kumar

Hi,

This is not working on scoped applications. anything else we need to do for scoped applications?

I'm getting the error: "cant access GlideDBObjectManager from scoped application"

Allen Andreas
Administrator
Administrator

Hi,

Other than using the method described by @Jim Coyne in the article mentioned above...if this won't be a situation that you need to implement instance wide or other use cases (so it's isolated to just scenario time, currently), you can use a custom field and a business rule to pretty much do the same thing.

I assume you tried something like that, but at this point, you haven't shared any specifics regarding that. What script are you using, what all did you use besides the system property, etc.?

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hello,

I just wanted to check-in and see how you're doing.

You mentioned your issue is not resolved?


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!