How to retrieve strings from a string collection

Hi Guys,

I am getting a String Collection "email addresses" as a output from Data Action in my architect flow.
I want to retrieve each email address as string into new variable ?
My string collection looks like this - "abc@gmail.com, xyz@gmail.com".
The number of emails address vary for each call. Is there any way I can retrieve these like in a loop ?

Why not use a string collection variable? Assuming Task.s is your string value, you can create a string collection variable by splitting

Split(Task.s, ",")

Flow.Announcements = EWT_ANNOUNCEMENT1:_SIT6010_EWTAnnouncement|EWT_ANNOUNCEMENT_Mins:_SIT6010_EWTAnnouncementMins|EWT_ANNOUNCEMENT_Secs:_SIT6010_EWTAnnouncementSecs|EWT_Threshold:360|

EWT1 = split(split(Flow.Announcements, "|")[0],":")[1]

In above example, we are going to pass the whole thing to a Variable and then split the values within it, Here The first delimiter is "|" which tells that we are creating array with delimiter being "|" and the array would start from"[0]" and then within that split array, we are yet again splitting it further with ":", so the value of EWT1 would be "_SIT6010_EWTAnnouncement".

You can use above logic for practically anything to split.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.