How to find the Item position in List?

datatable
excel

#1

Hi All,

I am reading a excel column using Read Column activity and the output is stored in the List.

Now I need to get the Index of a particular value. How could I do that?


#2

hi @cthamizh

Have you tried this:

list.IndexOf(item);

where item is the thing to find .

Regards…!!
Aksh


#3

Step 1 : I am reading data from Excel using Read Column and Storing the result in a Variable.
Step 2 : I am trying to use that Variable.IndexOf, but I am not getting Indexof property.


#4

you can share your code or screenshot?

just use the read column output to list_variable(item).

For your reference: list_indexof_example.xaml (7.7 KB)

Regards…!!
Aksh