Sample payload for generic software install records

  • Release version: Yokohama
  • Updated January 30, 2025
  • 1 minute to read
  • A sample payload that populates the Software Installation [cmdb_sam_sw_install] table in the ServiceNow instance with discovery data collected by third-party discovery sources.

    The following is a sample payload for creating software install records for publishers such as Microsoft, IBM. For Oracle, VMware, and Citrix, specialized payloads are used.

    In this sample payload, you are passing the information of the installed software, Microsoft Word 2016, and the related CI to inform where it is installed (on a computer CI "SAMILMT8"). You can look up column names in the cmdb_sam_sw_install table and send information by passing the columns, value pairs in the payload. For example, in this payload you are sending the publisher, version and display_name columns. You can also send additional information such as the edition column.
    Note:
    For more information on CI Identifier rules, see Identifier Rules.
    { 'items': [{'className':'cmdb_ci_computer',
                    'related': [{
                                  className:'cmdb_sam_sw_install',
                                  values: {
                                    'publisher':'Microsoft',
                                    'version':'2016',
                                    'display_name':'Word'
                                    }
                                }
                            ],
                       'values': {'name':'SAMILMT8'}
                                 }]
                  }
    Element Value Description
    className cmdb_ci_computer The class name of the CI.
    className cmdb_sam_sw_install The name of the related table in the CMDB application where the CI is to be created.
    publisher Microsoft The name of the publisher for whom this entry is being created in the table.
    version 2016 The version of the software for which this entry is created in the table.
    display name Word The display name for this entry in the table.
    name SAMILMT8 Unique identifier of the CI.