Adding strings to array

I have an empty array RolesArray and I want to assign string variables Role1 into this array.
After some code I want to add Role2. “,” should be the separator.

How do I do this?

the scenario has some dynamics on adding the element, so the datatype list is more suitable for this:

  • initializing the list: new List(Of String)
  • adding an element we can do with add to collection activity
1 Like

If you imported System.Linq in your workflow, YourArray.Append(Role1).ToArray can be used