How large can an integer be in ServiceNow?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2016 02:42 AM
Hey!
I created an integer type field on a form. Whenever I try to insert a number larger or equal to 1000, the system automatically assumes it's 1.000, as in one unit, instead of 1000. I've tried "quantity.replace(/./g , "");" and it doesn't work. As soon as I enter the value it instantly adds the "." . However, when I print the value that is supposedly being inserted on the table it shows the original 1000. Any suggestions on how to solve this?
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2016 02:51 AM
Hi Catarina,
Try to increase the Max Length of the field in dictionary entry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2016 03:08 AM
Hey Gurpreet!
I tried something else that worked for me. Variable's Dictionary>Advanced View>Atrributes Tab, I changed the value of the Format to None, and it solved the issue for some reason. Thanks anyway

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2016 02:53 AM
Hi Catarina,
I just tested this on the Order field (integer) of a business rule. The biggest integer appears to be:
2,147,483,647
If it is not taking larger than 1,000 please check the dictionary entry for your field to ensure there are no attributes or other settings that may impact that. Also check that there are no client scripts or business rules that may alter your value as you input or save it.
System Dictionary - ServiceNow Wiki
Dictionary Overrides - ServiceNow Wiki
Dictionary Attributes - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2016 03:09 AM
Hey Chuck!
I tried something that worked for me. Variable's Dictionary>Advanced View>Atrributes Tab, I changed the value of the Format to None, and it solved the issue for some reason. Thanks anyway