Hi guys,
I have an app with a gallery that lists records from Table A from dataverse. When selecting a record, the user is taken to a screen where the record can be edited. The user is however only allowed to edit records that he himself has created (and view records others have created). The user can also create a new record, after which the user is taken to the edit screen.
In order to evaluate whether the record is created by the user or not, the created by field from the "current_record" global variable is compared to the User() function. The comparison is as follows: current_record.UserName = User().Email.
This works fine when selecting a record from the gallery, but when I set the variable in the Patch function in the new record creating (or as I tried, to set it again with lookup), the created by field is missing this .UserName column (it only shows "fullname" and "systemuserid", which can not be compared to any User() attribute). So PowerApps seems to limit the amount of columns that are shown in this record from the created by lookup column (which is a lookup to the User table, standard dataverse table).
Any ideas how to show more columns with this lookup / patch, or some other way to compare the user data?