Auto numbering for Catalog item Variable

Syed Ahmed2
Tera Contributor

Hi,

I am trying to create a variable called 'Asset name' for a catalog item. I have created a single text type variable with Default value javascript:getNextObjNumberPadded(); I am now getting a value 'Variable0010000' Now i want to replace the prefix 'Variable' which i am getting with my own prefix. How can i achieve this?

6 REPLIES 6

Hi,

still it didn't answer what's the use of generating the next number?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur,

 

Client requires asset name to be generated automatically from a catalog item and wants the value to be unique for a specific class of asset. Hence we are trying to generate sequential numbers.

Regards,

Syed