String to Array in pipeline builder expression

624 Views Asked by At

My Synapse notebook returns an array, [1, 2] I would like to Iterate through each element using foreach activity, How do I convert it to a array from string, so foreach activity runs for each element.

to keep it simple, I have created pipeline as below (hard coded the values for now)

Here are the pipeline parameters

enter image description here

For each activity properties, I used @array, but it is not parsing each element.

enter image description here

Here is the Set Variable1 activity, inside foreach activity.

enter image description here

When I debug it is taking still taking it as string.

enter image description here

Can someone please help me, how to iterate through each element?

0

There are 0 best solutions below