I have sharepoint list which contains tickets. PowerApps has built me an app from that list and I now have a browse screen to view the tickets, and selecting a ticket takes me to a detail screen where more information about that specific ticket is displayed.
Now, on the detail screen I can see that PowerApps created a form that contains the ticket detail fields. And the data context of that form is set as follows:

So I can see that the form data source is set to the associated sharepoint list and the specific item is referenced via the selected item on the browse gallery from the browse screen.
Inside the form there are datacards and these contain the ticket detail items.

So here is where I start to lose some understanding. The datacards contain a key item and a value item, with the key being the name of the item and the value is obviously the value contained in that item. In the above screen grab I have selected the value item to see how it fetches my name from the dataset. And now some questions:
- How does the Choices([@Tickets].Assignedto) formula work? And how can I find out what it is returning?
- Inside the data tab itself I can see the Primary text is set to DisplayName so the datacard somehow knows that this item is a person type with a name and an email etc. What is going on here?
Now, my end goal here is actually to get at that Assignedto data for my own purposes. The only way I've found is to use the Browse gallery like this: BrowseGallery.Selected.'Assigned To'.DisplayName. This actually works, but I feel like I'm fudging it and that there should be a way to get at the item from within the Details page itself.
If anyone has advice it will be welcome.