Number Maintenance - incident number in the sequence, causing gaps

MominA
Kilo Contributor

In ServiceNow, when you create a new incident, the system generates an incident number based on the configured number maintenance settings. However, when you create a new incident and then cancel it without saving it, the system can still "consume" the incident number in the sequence, causing gaps like

 

INC000001, INC000002, INC000003 ---> These all incidents cancelled without saving it.

 

If i click on New button then i want the number as "INC000001" not "INC000004".

I wanted to avoid this and it should not consume the unsaved incidents number. How can i achieve it?

 

2 REPLIES 2

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @MominA 

 

It is not feasible to achieve this, and I strongly recommend against attempting it. The number generation process relies on internal code and is reset if the record is not saved. Implementing your requirement would increase technical debt. The best approach is to adhere to the Out-of-the-Box (OOTB) functionality.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

HasanM
Tera Contributor

Hi @MominA 

There is a system property named "glide.itil.assign.number.on.insert" which will assign number after insertion of record . Initially its value is false make its value to true to get the functionality.

HasanM_1-1737654425803.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards
@HasanM