What should I do to make a continuing generated ID number?

MinhBB1
Kilo Contributor

Hi everyone,

When I created the table, in tab Controls I checked auto-number box. 

find_real_file.png

Then I created a form then add to a module named "Register" . In ServiceNow window, I did regist . In the ID box, the ID number automatically generated. 

find_real_file.png

But I have a trouble which is the ID number is not continuing generated. 

I was like 1, 3, 5...etc

find_real_file.png

 

 

I read the below link and flowed the instructor (except part : glide.itil.assign.number.on.insert I didn't understand so I passed it. 

I just checked Assign a task number only upon insert to Yes )

https://docs.servicenow.com/bundle/kingston-platform-administration/page/administer/field-administration/task/t_PreventNumberingGaps.html

In this case, the number was continuing generated.

But I have another trouble which is the ID box did not show anything. 

find_real_file.png

 

 

When I submitted, in the table, the ID number was shown.

My question is : 

What should I do so that the ID box automatically generated continuing ID numbers ? 

1 ACCEPTED SOLUTION

go to the fields default value and the below

find_real_file.png

Regards
Harish

View solution in original post

8 REPLIES 8

Michael Ritchie
ServiceNow Employee
ServiceNow Employee

The system property and doc article you mentioned are the options.  The number will be generated at the time of insert vs before.  The reason for a gap in numbers is because it was generated prior to insert and the record was abandoned.

Hi Michael,

 

I have the same problem. I want to prevent incident table to abandon numbers on page refresh or cancel. Is there any way to implement it?

 

I have already tried "glide.itil.assign.number.on.insert" to true, however it is letting the incident number fields as blank.

 

Regards,

Kopal

MinhBB1
Kilo Contributor

Thank you for your explanation.

So what would I do to creat the ID number continuosly and display in the ID box? 

If you know, please instructe me.

go to the fields default value and the below

find_real_file.png

Regards
Harish