Legacy Dev Forum Posts

 View Only

Sign Up

How to retrieve strings from a string collection

  • 1.  How to retrieve strings from a string collection

    Posted 06-05-2025 19:16

    Ajax | 2024-10-11 14:43:55 UTC | #1

    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 ?


    MelissaBailey | 2024-10-11 15:00:22 UTC | #2

    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, ",")

    Shakti_Joshi | 2024-10-11 17:16:44 UTC | #3

    Flow.Announcements = EWTANNOUNCEMENT1:SIT6010EWTAnnouncement|EWTANNOUNCEMENTMins:SIT6010EWTAnnouncementMins|EWTANNOUNCEMENTSecs:SIT6010EWTAnnouncementSecs|EWTThreshold: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 "SIT6010EWTAnnouncement".

    You can use above logic for practically anything to split.


    system | 2024-11-11 17:17:12 UTC | #4

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


    This post was migrated from the old Developer Forum.

    ref: 29836