Hi everyone,
This is my first post, though I've used many of these posts to find my way through PowerApps development. I'm a public school principal using PowerApps to make school administration more efficient and to harness a giant ecosystem of data so that teachers can make more informed instructional decisions.
One key piece of that is joining SharePoint lists into a collection, but I have been totally unsuccessful, despite reading a number of posts in this forum and doing a lot of Google searching & YouTube watching. I'm hoping you all can help me get over this hurdle or point me to a solution that I have overlooked.
In this specific case, I am trying to join the following two SharePoint lists with the following (relevant) fields:
StudentsPSCurrent
- StudentNumber (number field) (this is the relevant unique identifier)
- FName (single line of text field)
- LName (single line of text field)
- HomeRoom (single line of text field)
StudentAdmin
- StudentNumber (number field) (this is the relevant unique identifier)
- TranspPM (single line of text field)
I'd like to create the collection colStudPSAdmin with these fields:
- StudentNumber (from StudentsPSCurrent)
- FName (from StudentsPSCurrent)
- LName (from StudentsPSCurrent)
- HomeRoom (from StudentsPSCurrent)
- TranspPM (from StudentAdmin)
I can create the collection, add the fields from the StudentsPSCurrent list, and add a text or number value into a TranspPM field of the collection. That code is below:

That successfully produces the collection, below:

But, as soon as I add a lookup to use the TranspPM field from the StudentAdmin list as the text for the TranspPM field in the collection, I get an error saying that a text and a table can't be compared in the lookup. Here's that code and the error:

This same lookup code works everywhere else except in collections. I've also tried
- wrapping one or both lookup values in Value(... or Value(Text(...,
- adding .Text or .Value to the end of one or both lookup values,
- using ThisRecord instead of StudentsPSCurrent in the lookup (this does not throw an error in the editor, but it does not produce any rows in the collection), and
- a lot of other things that were more or less (or not) intelligent.
I'm stuck! I hope someone can help me get unstuck!
Thanks!