Skip to main content

AddKeyToList

This Script is part of the Common Scripts Pack.#

Adds/Replaces a key in key/value store backed by an XSOAR list.

Script Data#


NameDescription
Script Typepython3
Tags
Cortex XSOAR Version5.0.0

Inputs#


Argument NameDescription
listNameList name.
keyNameKey.
valueKey Value.
appendAppend to key.
allowDupsAllow duplicates in array keys.

Outputs#


There are no outputs for this script.

Script Example#

!AddKeyToList listName="NewList" keyName="SomeKey" value="TestValue"

Context Example#

{}

Human Readable Output#

Successfully updated list NewList.