Setting Auto increment value to field on Catalog form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2020 09:57 PM
Hi Everyone,
i have created one field(number) in Catalog form.
now my requirement is, to make that field Auto Incremented field Just like Incident number field in Incident Table.
if anyone knows, please let me know.
Thank you

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2020 11:17 PM
Ah oke. You mean like on the Service Portal, a Catalog Item with a Variable showing a number?
Sure you could auto-populate a number. Somewhere on the Platform store a number (maybe even use a number maintenance record for this), get the number through Client Script + Script Include, increase it with 1 also save the number record). Though... what if another user also has the same Catalog Item on its screen at the same time? What to do with the number? What if a user does not save the form or reloads the form, you would get gabs in the number, is that acceptable? Etcetera?
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2020 01:41 AM
Hi Mark,
yes, can you please help me for scripting
my catalog item name is Demo && variable name is number
Thank you
Aswartha