So, I've built PowerApps SharePoint List forms in the past and have a question regarding Canvas app. I've got the SharePoint list added as a datasource in the Canvas app. When I click on the item in the list, I want it to load the Canvas app with the data for that particular line item. I know the general process on how to achieve this (I can pass the App ID, Tenant ID, and list item ID into PowerApps), but where I'm getting lost is in some of the detail. Here is what I'm currently doing:
1. I pass the SharePoint list item ID to PowerApps.
2. On each form, in the ITEM property, I can use the Lookup command to pull the data item with the corresponding list ID. So basically, when the form loads, it will display the data from the specific list item.
Here is what I'd rather do and can't quite get my head around it. With the PowerApps SharePoint list forms, it is easy to do so I need some help:
1. On form load, I'd like to query the list for the list item and load all the data. I'm assuming I can probably use my lookup code for that.
2. I'm confused as to what I'd put in the ITEM field on the forms. Any thoughts?
I'm already doing exactly what you posted and it works. What I'm asking is if there was another way of accomplishing the same thing so I wouldn't have to perform the lookup on every screen. Like, for example, doing the Lookup in the OnStart event. If I do that, what would I populate the ITEM property on the forms list with since I've already performed the lookup in OnStart?