How large can an integer be in ServiceNow?

catarinapereira
Tera Contributor

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.

5 REPLIES 5

Gurpreet07
Mega Sage

Hi Catarina,



Try to increase the Max Length of the field in dictionary entry.


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


Chuck Tomasi
Tera Patron

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


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