ServiceNowUpdateIncident
This script is used to wrap the generic update-record command in ServiceNow. You can add fields that you want to update the record with as script arguments or in the code and work with the records easily.
python · ServiceNow
Details
| ID | ServiceNowUpdateIncident |
|---|---|
| Language | python |
| From Version | 5.0.0 |
| Docker Image | demisto/python3:3.12.13.10116658 |
| Tags | servicenow servicenow v2 |
README
Wraps the generic update-record command in ServiceNow. Fields can be added that update the record with as script arguments or in the code and work with the records easily.
Script Data
| Name | Description |
|---|---|
| Script Type | python |
| Tags | servicenow |
Dependencies
This script uses the following commands and scripts.
- servicenow-query-table
- servicenow-update-record
Inputs
| Argument Name | Description |
|---|---|
| severity | The severity of the incident. |
| assignee | The assignee name of the incident. For example, “John Smith”. |
| description | The description of the incident. |
| assigned_group | The assigned group name of the incident. For example, “Incident Management Group”. |
| id | The incident ID to update. |
| number | The incident number to update. |
| query | The query to use. |
Outputs
| Path | Description | Type |
|---|---|---|
| ServiceNow.Incident.ID | The ID of the incident. | string |
| ServiceNow.Incident.Number | The number of the incident. | string |
args: - auto: PREDEFINED description: Incident severity. name: severity predefined: - 1 - High - 2 - Medium - 3 - Low - description: Incident assigne name (e.g John Smith). name: assignee - description: Incident description. name: description - description: Incident assigned group name (e.g Incident Management Group). name: assigned_group - description: Incident ID to update. name: id - description: Incident number to update. name: number - description: 'Query to use.' name: query comment: |- This script is used to wrap the generic update-record command in ServiceNow. You can add fields that you want to update the record with as script arguments or in the code and work with the records easily. commonfields: id: ServiceNowUpdateIncident version: -1 enabled: true name: ServiceNowUpdateIncident outputs: - contextPath: ServiceNow.Incident.ID description: Incident ID. type: string - contextPath: ServiceNow.Incident.Number description: Incident number. type: string script: '-' tags: - servicenow - servicenow v2 timeout: '0' type: python subtype: python3 dependson: must: - servicenow-update-record - servicenow-query-table tests: - No test - Hibernating instance fromversion: 5.0.0 dockerimage: demisto/python3:3.12.13.10116658 skipprepare: - script-name-incident-to-alert