Iterate via a comma separated list

Status: Closed · Asked by bnicholes on · 0 views

bnicholes — Question ·

Hello,

I have data coming in as a string. Sometimes the data has multiple elements separated by a comma, other times not.

What I would like to do is test to see if there are multiple elements, and if so, then perform an action over each of the items in the list.

For example, here is my input data: "[email hidden],[email hidden],[email hidden]"

I would like to add each of these three emails onto a subscriber list separately.

Please help.

Thanks,
Ben

Pabblymember11 — Reply ·

Hey @bnicholes

Could you please share the name of the workflow in which you want to pass the Line items? So that we can look into it and can guide you accordingly.

bnicholes — Reply ·

Hello, yes,

The workflow I am referring to is "New Sales Sheet -- Automatic Sale Notification".

The use case I am trying to accomplish is exactly what is described in my first post above. I have a comma separated list and I want to iterate over these values and add them all to an email subscriber list.

Thanks,
Ben

Pabblymember11 — Reply ·

Hey @bnicholes

If you want to use the Iterator action step you need to first convert/take the email address in the JSON array format and then can pass the data in format.

Please check the following screenshot for your better understanding.

Back to all forum threads · Log in to reply