Good morning!
Table({Cliams:"i:0#.f|membership|" & User().Email, DisplayName: User().FullName, Email:User().Email})
The above formula is working for me to populate User Name for Person type field/column(Inspector). There are two issues with the code -
1. Inspector name is not reflecting in my SharePoint list for records added/submitted.
2. In Power apps records history, records User name is keep changing to the person who is using the app for old records also.
(For example - I created one test record and another test record is created by my Boss. And both the old records on power app showing my name when I am checking old records and on my Boss end it is showing his name for both old records added.)
AND
I tried another way -
{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
DisplayName: User().FullName,
Claims: "i:0#.f|membership|" & User().Email,
Email: User().Email
}
It is showing Inspector name in my SharePoint list however in the records for Test Record it is showing something like in second image. I need help to make change into the code from Azure to O365 and to solve the error.