Join strings

list=[“mysore”, “banglore”,“chennai”]
How print this list using string.Join


I want [ and ] also

Give a check to serialize the list into JSON and use serialized string

I didn’t get you

Give a try: Use assign activity


Maybe some fixes are to do afterwards
Make sure the uiPath.WebAPI.Activites are referenced and Newtonsoft.Json is imported by the namespaces

String.Join(" and ",YourlistVariable)