Hoping someone can help with this please!
I'm building an app for our housing charity which enables people to do property reports.
When a user starts the app it shows them a list of properties in their location, based on a Sharepoint List which has 2 columns, Location and User. This works fine using:
Set(varLocation,LookUp([@'User Locations'], Username=User().FullName, Location));
Once the property check questions are answered I need to write the results to a Sharepoint list for their specific location, and also to cards on a location-specific Trello Board. So I think I need to set variables for the Sharepoint list name, Trello Board ID and Trello List ID based on the user location. Maybe there is a better way?
I've set up another list, 'Location App Output', with columns for Location, TrelloBoardID, TrelloListID and SharepointMPRname (the name of the location-specific Sharepoint List for each location).
I assumed something like this would work to set the necessary variables for use in retrieving current data and with the Patch command for saving output.
Set(varMPRListName,LookUp([@'Location App Output'], Location=Location,SharepointMPRname));
Set(varTrelloBoardId,LookUp([@'Location App Output'], Location=Location,TrelloBoardID));
Set(varTrelloListId,LookUp([@'Location App Output'], Location=Location,TrelloListID));
However, I get the following error with all 3 of these 'Set' commands:
Incompatible types for comparison. These types can't be compared: Record, Record
I've searched for a solution to no avail, and tried various changes to the syntax but nothing works.
Any advice please? Thanks in advance.
@RandyHayes your reply to the post 'PowerApps lookup function returns error: Incompatible types for comparison' seems to be relevant but I can't make it work in my context. I'm very new to Power Apps by the way!