How to use invokemethod to retrieve values from List

Hi All,

I am trying to understand the invokemethod activity in the UipathStudio. I am unable to get the values from the List. I would like to pass the index as a parameter to Item() method of List and I would like to use the invokemethod Activity only. Can someone please help me to understand what needs to be how to use method which returns some values of different type. Attached is my program.InvokeMethodList.xaml (6.7 KB)

Hi,

List<T>.Item is not method but property. You need to use assign activity as the following.

currentCity = cities.Item(index)  or currentCity = cities(index)

See also

Regards,

I would like to use the invokemethod Activity only. Is there any way to do this?

Hi,

How about the following?

img20200528-1

Regards,

@Yoichi: Nice Idea… But don’t we have any method to retrieve the list items from the List, instead of List.Item()…

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