For Loop append string

My flow is to add all the items that I get in the for-loop in to a string.

For example,
1st loop has item: AAA
2nd loop has item: BBB
3rd loop has item: CCC

I want output = AAA , BBB , CCC

Please guide me about it.

Hi @fairymemay

Try with String.Join method

Have Look on the thread

Regards
Gokul

@Gokul001 But If 1 value , I want show same value.

Please guide me about it.

Hi @fairymemay

Here is the workflow

List(String).xaml (5.0 KB)

Regards
Gokul

1 Like

Hi @fairymemay ,

If you are using a For Each Loop, then here is a sample sequence to get you started:

image

image

image

I’m using a Substring Method to get rid of the comma that gets appended towards the start when we first start assigning the items to our string variable.

CombineStrings.xaml (6.4 KB)

Kind Regards,
Ashwin A.K

1 Like

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