While appending Item to list - getting below error

System.Collections.Generic.List(System.String) … I am not getting this data type …I am getting System.Collections.Generic.lList(System.String) … don’t know what is missing in my env.

Hi @sachin_RAMPURE

Type till List. You will find List<T>. Click on that after you will see a dropdown where you can select String.

Check the below thread for screenshots @sachin_RAMPURE

Regards

That’s because you’re using the Add to List activity. Don’t use that, just use Assign with the concat expression I gave you. Set your variable as IEnumerable(of string) and in the default put New List(of string)

Not able to set variable as IEnumerable(of string) …only able to set IEnumerable please refer my screen shot

Able to get that data type

In browse for types you type ienumerable and then select the one with <T> next to it. Then select String in the pulldown that appears at the top:

image



let me know where I am making mistake

Thank you all for you input and learned something new today.

Resolved my issue by using simple string concatenation instead of using creation of List and adding Item to the list.

You don’t do String.Concat you do yourListVar.Concat({"new item 1","new item 2"})

The things to add must be in an array.

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