ServiceNowCreateIncident
This script is used to wrap the generic create-record command in ServiceNow. You can add fields that you want to create the record with as script arguments or in the code and work with the records easily.
python · ServiceNow
Details
| ID | ServiceNowCreateIncident |
|---|---|
| Language | python |
| From Version | 5.0.0 |
| Docker Image | demisto/python3:3.12.13.10116658 |
| Tags | servicenow servicenow v2 |
README
Wraps the generic create-record command in ServiceNow. Fields can be added that create the record with a script argument 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
- servicenow-create-record
Inputs
| Argument Name | Description |
|---|---|
| severity | The incident severity. |
| assignee | The incident assignee name. For example, “John Smith”. |
| description | The incident description. |
| assigned_group | The incident assigned group name. For example, “Incident Management Group”. |
Outputs
| Path | Description | Type |
|---|---|---|
| ServiceNow.Incident.ID | The ID of the incident. | string |
| ServiceNow.Incident.Number | The number of the incident. | string |
args: - name: severity auto: PREDEFINED predefined: - 1 - High - 2 - Medium - 3 - Low description: Incident severity. - name: assignee description: Incident assigne name (e.g John Smith). - name: description required: true description: Incident description. - name: assigned_group description: Incident assigned group name (e.g Incident Management Group). commonfields: id: ServiceNowCreateIncident version: -1 name: ServiceNowCreateIncident comment: |- This script is used to wrap the generic create-record command in ServiceNow. You can add fields that you want to create the record with as script arguments or in the code and work with the records easily. outputs: - contextPath: ServiceNow.Incident.ID description: Incident ID. type: string - contextPath: ServiceNow.Incident.Number description: Incident number. type: string enabled: true script: '-' scripttarget: 0 tags: - servicenow - servicenow v2 type: python subtype: python3 dependson: must: - servicenow-create-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