Auto numbering for Catalog item Variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2022 03:24 AM
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?
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2022 06:47 AM
Hi,
still it didn't answer what's the use of generating the next number?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2022 04:01 AM
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