ServiceNow - Showing JSON Fields in Basic View

ServiceNow Custom Asset Schema can also be used for this functionality and is recommended.

You can configure fields that generally appear in JSON to appear in Basic view. Configure for Devices, Business Applications, Databases and Users separately as required. Use the plus sign to add an entry to each field. The system validates the content you enter.


AdvancedFieldsBasic
ServiceNow JSONFieldsBasic Users

Enter fields in the following JSON format:

[
  {
      "label":"My First Field", 
      "raw_field": "field_a",
      "field_type": "str"
  },
  {
      "label":"My Second Field",
      "raw_field": "field_b",
      "field_type": "int"
  },
  {
      "label":"My third Field -  Application Name",
      "raw_field": "application/name",
      "field_type": "str"
  },
  {
      "label":"My third Field -  Application Number",
      "raw_field": "application/number",
      "field_type": "int"
  }
]
  • label - the name for the field you want to appear in the basic view

  • raw_field - the name of the field as it appears in JSON format on the Adapter Connections page of the Asset Profile (or Advanced view table)

  • field_type -the field type as it appears in JSON format. The following field types are supported. int, string, datetime, float, bool. You can write them in the following ways:

    'int', 'string', 'str', 'date', 'datetime', 'float', 'bool', 'boolean'