Skip to main content


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:

Script Data#

Script Typejavascript
Cortex XSOAR Version5.0.0


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


There are no outputs for this script.