List - City names showing Vertical row

Hi friends,

I facing issue in output as its repeating city names in multiple lines and showing in vertial row as attached.

i need in horizontal row in output like Like Barcelona, London, Madriad, Manchester.

Appreciated any one can help me to figure this out. Thanks.

1 Like

Hey @Abdul_Jawad,

Assuming you have a list with city names - cityList = { Barcelona, London, Madriad, Manchester}

Try the below snippet to print list contents horizontally as you need,

string.Join(", ", cityList)

The above statement returns a string with list contents separated by separator mentioned.

You can use it in a log message or store it in a string variable.

Hope this helps.

Thanks :slight_smile:

1 Like

Hi Nitin,

Thank you,i tried but still its not working. i will check.

1 Like

Hey @Abdul_Jawad,

Let me know what issue you are facing and is this the expected outcome.

Thanks :slight_smile:

Hi @Abdul_Jawad,

Please find the attached workflow for your requirement.
Let me know If you want to know required details
Recall_Excel.xaml (7.8 KB)

Hi @Nithinkrishna.

Please see the attached output i am getting, also i will attached the workflow fyi.
I am looking for output like in horizontal line should be Barcelona, London, Manchester, Madriad.

Regards,Cities.xaml (8.4 KB)

Hi @varunk,

Hi @Nithinkrishna.

Please see the attached, My requirement in output should be like Barcelona, London, Manchester, Madriad. Thanks
Cities.xaml (8.4 KB)

@Abdul_Jawad - I have placed the write Line outside of the Loop…

Is this what you are looking for?

@prasath17 ,
Yes absolutely, thanks i was looking for this output. thank you :slight_smile: