Auto Numbering

brendanwilson84
Kilo Guru

Hi Guys,

Got a question on the numbering in servicenow. On the custom app, extended from task, I have numbering. I.E Request Number.

I just noticed that when I enter the form, I am assigned the number, example 04311. If I don't take any action and just exit without submit etc, and go back in the next number is 04312.(see below)

If I took no action and just exit and go back in, should the number not still be 04311 and not skip a number?

find_real_file.png

find_real_file.png

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

HI Brendan,



By default, the system generates a number when a new record form is displayed. If you do nothing, the number is discarded and the next number is used on the next record. There is a system property to change this. Keep in mind it affects system numbering for ALL records (not just your private table.)



Managing Record Numbering - ServiceNow Wiki


View solution in original post

3 REPLIES 3

Chuck Tomasi
Tera Patron

HI Brendan,



By default, the system generates a number when a new record form is displayed. If you do nothing, the number is discarded and the next number is used on the next record. There is a system property to change this. Keep in mind it affects system numbering for ALL records (not just your private table.)



Managing Record Numbering - ServiceNow Wiki


Chuck, thanks again for quick reply. Makes sense.


HarshTimes
Tera Guru

Hi Brendon


This is how out of box servicenow number system works for this. There is a logic on default value of the number filed which increment the number whenever the corresponding form is accessed.


If you want to change this then you can remove the default value from the number field and add one on insert business rule having the same code. This will generate the number only the form is actually inserted



-Harsh