Hey everyone, is there a way to programmatically d...
# suitescript
d
Hey everyone, is there a way to programmatically determine if auto-numbering is on or off for Projects?
a
not via any API that I'm aware of, you could potentially create a couple of projects and compare their numbers? but that feels a little goofy
(I don't see it in config/runtime modules)
d
Curse you NS!
c
@darrenhillconsulting have you checked
context.newRecord.fields.tranid / transactionnumber
in a beforeLoad script? It's possible the value will be To Be Generated if auto-numbering is on.
d
Here's what I ended up implementing. Not pretty, but it works.
c
The presence of
altname
will reliably serve as a proxy of autonumbering?
d
For
project
? Yes, from my testing in several different accounts
👍 1