Insert string value to a field of type decimal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2024 09:06 AM
Hi,
Can we instert string value to an out of the box field of type decimal.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2024 09:08 AM
@JPSS What is the use case here? Decimal field can't store a string value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2024 09:12 AM
@Sandeep Rajput in the interaction table we have a field called customer satisfaction score which is OOBT of field type decimal. Want to resuse the field to store survey result as "Good","Neutral","Bad".

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2024 09:22 AM
@JPSS I recommend creating a separate field for this purpose. As decimal field can't store the string value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2024 03:37 PM
Hi @JPSS ,
You cannot directly store a string value in a field of type decimal in ServiceNow. The decimal field type is specifically designed to store numeric values with decimal precision, and it will not accept string inputs.
See the below screenshot from servicenow docs-
However, as suggested by Sandeep, if you want to store survey results then you should use a different field type, such as a string field or a choice list, that is designed to hold such values.
If my response has resolved your query, please consider giving it a thumbs up and marking it as the correct answer!
Thanks & Regards,
Sanjay Kumar