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 XSOAR.
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 Playbooks and create or edit a playbook.
Create a new task.
In the
field, select the 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.
Click the task and playbook.
For a practical example of using a transformer in a list, see Apply Transformers to Extracted Data.