How can you concatenate the names of all employees into a single string separated by commas using LINQ in UiPath?

How can you concatenate the names of all employees into a single string separated by commas using LINQ in UiPath?

Hi @lomarnash643

String.Join(", ", employeeDataTable.AsEnumerable().Select(Function(row) row.Field(Of String)("EmployeeName")))

Hi @lomarnash643 ,

Could you check with the below :

String.Join(",",{"A","B"})

We do not know the source data, if you could provide the input data format (assumed Array of String here) we will be able to provide you with appropriate suggestions.

@lomarnash643

string concatenatedNames = string.Join(", ", employeeList.Select(e => e.Name))

hope its helps you

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