Domanda

I am creating a simple Power apps application, I need help on how to display a list content of logged in User.

Example, If the logged in User name matches the list field titled Name then display contents of that row.

È stato utile?

Soluzione

You can easily get the user details like Full name, Email, etc. in PowerApps using User() function.

So, all you have to do is filter a SharePoint list data source using this function based on your requirement.

If Name is Single Line of Text Field in List:

Filter('SharePoint List', Name = User().FullName)

If Name is Person or Group Field in List:

Filter('SharePoint List', 'Name'.DisplayName = User().FullName)

OR

Filter('SharePoint List', 'Name'.Email = User().Email)

Note: It is best practice to use the Email for filtering data sources as multiple users can have same full name/display name within organization.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top