How to choose "i" th location of a list where "i" is unknown
Question
Application Type
Mobile

How to get the "i" th location of a list where i is unknown and can be identified based on the value of a different column

For ex -

List - customerList

Id   Name   Phone

1     Matt       123

2    Jerry         456


CustomerList.List[Name = "Matt"].Phone

Thanks

mvp_badge
MVP
Solution

Hello there Learn It,

Hope you're doing well.


You should be able to achieve that using ListIndexOf action from System:


This action returns the position of the first element of the list that satisfies a given condition.

Then you just need to pass the result of this action to the list:

CustomerList.List[<ResultOf_ListIndexOf>].Phone


Hope that this helps you!


Kind regards,

Rui Barradas 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.