Skip to main content
To transform incoming data into a list or array of objects, you can use this transformer. For example, if a field called Product ID is ingested into the system as follows: Product ID: 1234|09876|23792 Then, although the values are separated by a pipe character, the system identifies it as a single string, which is incorrect. Moreover, storing it as a string restricts proper filtering in the downstream modules. To avoid this, store it as a list or array of strings. However, since the value is not initially in list or array format, the system converts the entire data into a single value and stores it as ProdID(List String) = ["1234|09876|23792"]. To correct this, use the following directives in your transformer:

Directives for Data Transformation

Code
Below are details of how each directive functions: As a result, the system stores the Product ID as Product ID: ["1234", "09876", "23792"]. This facilitates straightforward filtering of the values in downstream systems such as Audiences.
Last modified on February 26, 2026