Skip to main content

EvaluateContextValue

This Script is part of the Common Scripts Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.10.0 and later.

The script is for use with GenericPolling, which checks the completion condition. It uses a DT to retrieve a value from the context data and evaluates it using another DT.

Script Data#


NameDescription
Script Typepython3
Tagsevaluation, polling

Inputs#


Argument NameDescription
idThe ID to identify the output value.
dt_encodingThe encoding scheme for the value_dt and eval_dt parameters. This can be useful for those parameters that contain special characters and require complex escaping.
value_dtThe DT expression for retrieving a value from the context data.
eval_dtThe DT expression for retrieving data for the evaluation from the value.
eval_keyThe key name that is associated with the value before it's passed to eval_dt. If this parameter is provided, eval_dt receives a key-value pair (the key name and the value for the evaluation) in a dictionary.
playbook_idThe sub-playbook ID to get its local context from the context data.

Outputs#


PathDescriptionType
EvaluateContextValue.idThe ID given to the argument parameters.string
EvaluateContextValue.okThe result of the evaluation by 'eval_dt'.boolean