I am developing in PowerApps for Teams and using Dataverse for Teams as my data source. I am able to properly set a variable by selecting an item from a Gallery :
Set(varSelecetedTournament, TournamentGallery.Selected)
but this will not work for the OnStart property of the App. I know the record I want to select for the variable. The LookUp function seems ideal:
Set(varSelectedTournament, LookUp(Tournaments, 'Tournament Sanction'=1234567))
This returns the correct record, but the vast majority of the columns are blank. Only the TournamentSaction and TournamentID columns are populated, all the others are blank. When I change the function it returns a value:
Set(varSelectedTournament, LookUp(Tournaments, 'Tournament Sanction'=1234567,'Tournament Name'))
How can I get the whole record? Does anyone know what I'm doing wrong?
Thank you for your help.
Ken