Create a transformer to split a list into an array when adding or editing a task in a playbook or when mapping an instance in Cortex XSIAM.
You can create a transformer to split a list into an array when adding or editing a task in a playbook or when mapping an instance.
Go to
→ → and create or edit a playbookCreate a new task.
In the Choose automation field, select the Set automation.
In the Key field, enter the key name.
For the value field, click {}
Add a Transformer.
Click Filters And Transformers.
In the Get field, click {}.
Expand the Lists node and select the list you want to transform.
In Apply transformers on the field section, click Add transformer.
Search for and select Split.
(Optional) In the delimiter field, type the delimiter used to separate the items in the string (default is ",").
Save the transformer.
Save the task and playbook.
For a practical example of using a transformer in a list, see Apply Transformers to Extracted Data.