Skip to main content

CheckContextValue

Supported versions

Supported Cortex XSOAR versions: 6.0.0 and later.

This script checks that a context value exists (and contains data), and optionally checks the value of the key for a match against an input value. This script can be used with the "GenericPolling" playbook to poll for field population or that a field contains a specific value.

Script Data#


NameDescription
Script Typepython3
Tagsevaluation, polling
Cortex XSOAR Version5.0.0

Inputs#


Argument NameDescription
keyThe key to check (can contain. ex: key1.key2.key3)
regexThe regex pattern to check the field for. (optional).
ignore_caseWhether character matching will be case-insensitive. Default is "False".

Outputs#


PathDescriptionType
CheckContextKey.nameKey Namestring
CheckContextKey.exists.existsWhether the Key Exists.Unknown