GetByIncidentId

Gets a value from the specified incident's context.

python · Common Scripts

Details

IDGetByIncidentId
Languagepython
From Version5.0.0
Docker Imagedemisto/python3:3.12.13.10404775

README

Gets a value from the specified incident’s context.

Note This script can only retrieve incident fields that appear under the investigation context. To get incident basic information, use the searchIncidentsV2 automation to pull the relevant incident and extract the needed fields from the automation output.

Script Data


Name Description
Script Type python3
Cortex XSOAR Version 5.0.0

Inputs


Argument Name Description
incident_id The ID of the incident from which to get context values. The default is the current incident.
get_key The key to get
set_key The key to set. The default is “get_key”.

Outputs


There are no outputs for this script.

commonfields:
  id: GetByIncidentId
  version: -1
name: GetByIncidentId
script: '-'
type: python
subtype: python3
tags: []
comment: Gets a value from the specified incident's context.
enabled: true
args:
- name: incident_id
  default: true
  description: The ID of the incident from which to get context values. The default is the current incident.
- name: get_key
  required: true
  description: The key to get.
- name: set_key
  description: The key to set. The default is "get_key".
scripttarget: 0
dockerimage: demisto/python3:3.12.13.10404775
runas: DBotWeakRole
tests:
- No test - tested with unittest
fromversion: 5.0.0