Storing data
There are various types of fields provided by the ServiceNow platform. We will explore some of the simpler ones before moving on to the fundamental backbone of the data structure with reference fields:
- String: These fields are simple text fields. The UI displays a string field as an editable text box. If the
Max length
attribute in the dictionary is more than255
, then a multiline field is shown. Most fields in ServiceNow are enhanced versions of the string field. - Choice: These fields are string fields, but rendered as
HTML select
fields. The value that is stored in the database is plain text. Another table, theChoices
[sys_choice
] table, stores the options and labels. This lets the platform convertwip
in the database to presentWork in Progress
to the user. Any values that don't have a label are highlighted in blue in the dropdown.
- Integer choice: These fields use numbers instead of text to achieve the same result as normal choice fields. They are useful for representing states...