Function Add not working in List type variable

  1. I created List variable and added some default values in that
    new List(of string) from {“value1”, “value2”}
  2. When I used invoke method “Add” for that list I was not able to use that. I threw an error.

@blacksundar

Could you please show me that error message and how you used that method.

try using
ListVariable.Concant(“Value3”)

@blacksundar Instead of using add method use a activity called “Add To Collection”

Sorry it also didn’t work :frowning:

@blacksundar

Method Name Should be Add

I used first “Add” only… then used this one. :-1

@blacksundar

Check the workFlow

AddItemsToList.xaml (5.6 KB)

1 Like

Yes it is working, but if you can tell me what wrong I am doing ?