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.


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

try using

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

Sorry it also didn’t work :frowning:


Method Name Should be Add

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


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 ?

Is there any way to add item in list using Assign activity?