Skip to main content


This Script is part of the Common Scripts Pack.#

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#

Script Typepython3
Tagsevaluation, polling
Cortex XSOAR Version5.0.0


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".


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