Modify Dictionary Entry

Hrishabh Kumar
Giga Guru

I created a field name "Capacity Used" and made it "Integer" type, Now I have to change it's type and make it "Float" or "Decimal" type to store decimal point value as well.

But I'm not able to change the type, I don't get any other option in Type field rather than "Integer".

 

How can I change the fields type.

 

String.PNG

1 ACCEPTED SOLUTION

Aman Kumar S
Kilo Patron

Its recommended by Servicenow to never change the type of the dictionary, if you at all need to change the type to integer to float, you can create a new field, and deactivate the existing one and transform your current data from old field to new field to avoid data truncation and unexpected issues.

AmanKumarS_0-1707466568143.png

 

Read below article for more context:

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0712394

 

 

Best Regards
Aman Kumar

View solution in original post

3 REPLIES 3

Aman Kumar S
Kilo Patron

Its recommended by Servicenow to never change the type of the dictionary, if you at all need to change the type to integer to float, you can create a new field, and deactivate the existing one and transform your current data from old field to new field to avoid data truncation and unexpected issues.

AmanKumarS_0-1707466568143.png

 

Read below article for more context:

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0712394

 

 

Best Regards
Aman Kumar

shubhamdubey
Mega Sage

@Hrishabh Kumar 

 

It is not feasible to accept the decimal value of integer data type.

You should need to delete the integer data type field and create a new one with decimal data type.

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Hrishabh Kumar 

 

As correctly said by guru @Aman Kumar S , dont change the data type.  and to do same, please take back up of  old data, change the data type and bring data back in field. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************