I'm looking for a way to generate a unique record ...
# suitescript
c
I'm looking for a way to generate a unique record label. In many databases there are ways to accomplish this with native functionality. How can one do this with NS script?
e
Careful thinking of NS as a database; it has one behind it of course, but you don't interact with it that way as a developer. You'll likely have to write your own unique generation system, depending on exactly what type of record you're working with. NetSuite does provide a native system for numbering record types sequentially
and you can provide that sequence with prefixes/postfixes/initial values
c
Really? Very cool. Where can I find documentation for that?
I'm happy to run it down if you know what it's called?
e
Check Help for
Set Auto-Generated Numbers
c
Thank you!!!
e
the functionality itself us under
Setup > Company > Auto Generated Numbers
(assuming Admin Classic Center)