ServiceNowQueryIncident

This script is used to wrap the generic query-table command in ServiceNow. You can add fields that you want to use as inputs and outputs from the record as script arguments or in the code and work with the records easily.

python · ServiceNow

Details

IDServiceNowQueryIncident
Languagepython
From Version5.0.0
Docker Imagedemisto/python3:3.12.13.10116658
Tagsservicenow servicenow v2

README

Wraps the generic query-table command in ServiceNow. Fields can be added to use as inputs and outputs from the record as script arguments or in the code and work with the records.

Script Data


Name Description
Script Type python
Tags servicenow

Dependencies


This script uses the following commands and scripts.

  • servicenow-query-table

Inputs


Argument Name Description
id The system ID of the incident.
number Th number of the incident.
assignee The assignee name of the incident. For example, “John Smith”.

Outputs


Path Description Type
ServiceNow.Incident.ID THe ID of the incident. string
ServiceNow.Incident.Description The description of the incident. string
ServiceNow.Incident.Number The number of the incident. number
ServiceNow.Incident.Caller The caller of the incident. string
args:
- description: Incident System ID.
  name: id
- description: Incident number.
  name: number
- description: Incident assigne name (e.g John Smith).
  name: assignee
comment: |-
  This script is used to wrap the generic query-table command in ServiceNow.
  You can add fields that you want to use as inputs and outputs from the record as script arguments or in the
  code and work with the records easily.
commonfields:
  id: ServiceNowQueryIncident
  version: -1
enabled: true
name: ServiceNowQueryIncident
outputs:
- contextPath: ServiceNow.Incident.ID
  description: Incident ID.
  type: string
- contextPath: ServiceNow.Incident.Description
  description: Incident description.
  type: string
- contextPath: ServiceNow.Incident.Number
  description: Incident number.
  type: number
- contextPath: ServiceNow.Incident.Caller
  description: Incident caller.
  type: string
script: '-'
tags:
- servicenow
- servicenow v2
timeout: '0'
type: python
subtype: python3
tests:
- No test - Hibernating instance
dependson:
  must:
  - servicenow-query-table
fromversion: 5.0.0
dockerimage: demisto/python3:3.12.13.10116658
skipprepare:
- script-name-incident-to-alert