Lookup values in a collection

3k views Asked by At

ClearCollect(MyCollection, Split("A,B,C", ",")) returns:

[![enter image description here][1]][1]

1

There are 1 answers

0
carlosfigueira On BEST ANSWER

You can use the AddColumns function to add the 'Name' column into the result of the Split function, something along the lines of

ClearCollect(
    MyCollection,
    AddColumns(
        Split("A,B,C", ","),
        "Name",
        LookUp(MySharePointList, Id = Result, Name)))

Where 'MySharePointList' is your SP list; 'Id' would be the field of that list that you want to match with the 'A'/'B'/'C', and 'Name' is the field of the list that you want to extract.