Very simply, I have a Canvas PowerApp connected to a few Sharepoint Lists and I'm having trouble getting the text value of a Sharepoint Lookup field into a Power Apps Collection. The aim of this app is combining multiple "Requests" from various Sharepoint Lists into a Collection to view in the Canvas PowerApp. Those request lists have a Lookup field that is yielding the problems
Sharepoint Lists:
- Request Type 1
- Plant Lookup Field (multiselect)
- Request Type 2
- Plant Lookup Field (multiselect)
- Plant directory
Things I have tried:
- Using Lookup, AddColumns, and DropColumns to lookup the text value needed to get "Plant name" from 'Plant Directory' list
- Code yields error "Cannot compare value of type number to table" regardless of if I put .Value or Value() after or around Plant ID:
ClearCollect(plantTest,
AddColumns(
ShowColumns(
'Requests - Type1',
"Title",
"AssignedTo",
"Status",
"RequestType",
"Description",
"ID",
"Created",
"Author",
"Plant"
),
"Plant Value I Want",
LookUp('Plant Information',ID=Plant[@Id], 'Plant Code')
)
);
- Using Collect and leaving the Plant Lookup field as is.
- Code that yields an error that I cannot have collections of this type (only occurs when I add "Plant" to the second Collect statement)
ClearCollect(
allTickets,
AddColumns(
RenameColumns(
ShowColumns(
'Requests - Type 1',
"Title",
"AssignedTo",
"Status",
"RequestType",
"ProblemDescription",
"ID",
"Created",
"Author",
"Plant"
),
"ProblemDescription",
"Description"
),
"Category",
"1"
)
);
Collect(
allTickets,
AddColumns(
RenameColumns(
ShowColumns(
'Requests - Type 2',
"Title",
"AssignedTo",
"Status",
"RequestType",
"Comments",
"ID",
"Created",
"Author","Plant"
),
"Comments",
"Description"
),
"Category",
"2"
)
);
This problem has been persistent for a week, and a solution doesn't feel any closer. The end result is PApps always yielding the lookup field as a "record" field rather than one of it's values. Help would much be appreciated. What am I doing wrong? How can I approach combining the Sharepoint lists Request Type 1 and Request Type 2 into a Collection with their respective Lookup field values?
Examples of how the Lookup field ends up stored:

