Skip to main content

SetAndHandleEmpty

This Script is part of the Common Scripts Pack.#

Set a value in context under the key you entered. If no value is entered, the script doesn't do anything.

This automation runs using the default Limited User role, unless you explicitly change the permissions. For more information, see the section about permissions here: https://docs-cortex.paloaltonetworks.com/r/Cortex-XSOAR/6.10/Cortex-XSOAR-Administrator-Guide/Automations

Script Data#


NameDescription
Script Typejavascript
TagsUtility
Cortex XSOAR Version5.0.0

Inputs#


Argument NameDescription
keyThe key to set in context.
valueThe value of the key to set in context. The value is usually a DQ expression. Can be an array.
appendWhether to append the new context key to the existing context key. If "false", then the existing context key will be overwritten with the new context key.
stringifyWhether to save the argument as a string. The default value is "false".
forceWhether to force the creation of the context. The default value is "false".

Outputs#


There are no outputs for this script.