Create a transformer to split a list into an array when adding or editing a task in a playbook or when mapping an integration instance in Cortex XSOAR.
Create a transformer to split a list into an array, add or edit a task in a playbook, or map an instance.
Go to
and create or edit a playbook.Select Create Task.
In the Choose script field, select the Set automation.
In the Key field, enter the key name.
In the value field, click {}
Add a transformer.
Click Filters And Transformers.
In the Get field, click {}.
Expand the Lists node and select a list to transform.
In Apply transformers on the field, 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 ",").
Click Save.
Save the task and playbook.
For an example of using a transformer in a list, see Apply transformers to extracted data.