cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

How do I implement custom list views in a powerapp?

I am attempting to filter a SharePoint list on PowerApps using a custom list view I've created on SharePoint. Is there a way to do this? Essentially, I want users to only view their own items on the list. (It's a project portfolio, so their own projects).  

 

Any suggestions? I've attempted to do it through workflows and by applying "Filter" commands, but I cannot seem to get it to work.

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: How do I implement custom list views in a powerapp?

@Anonymous 

So, the quick and simple is to then have a filter like this for your gallery:

Filter(projectList, PNP.Email = User().EMail)

This will compare the email component of the PNP people column with the current user email.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

View solution in original post

6 REPLIES 6
Highlighted
Dual Super User
Dual Super User

Re: How do I implement custom list views in a powerapp?

What designates an item as theirs?  Do you want to filter on who created the item? or is there some other field that tracks who owns the project portfolio?  You can do it with a filter command, but there has to be a field that can be filtered. Could you provide more detail?



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Highlighted
Super User
Super User

Re: How do I implement custom list views in a powerapp?

@Anonymous 

You cannot utilize a view on a SharePoint list at this time.  However, you can certainly put that same logic into a Filter in PowerApps.

 

You didn't mention any criteria information or columns in your lists, so, as an example:

   Filter(projectList, projectOwner=User().DisplayName)

 

This would, if used as a datasource for a Gallery, give you a list of all the items in projectList that have a column called projectOwner set to the display name of the current user.

 

If you have more specifics you need some help with, post back and we'll go further on it.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Highlighted
Anonymous
Not applicable

Re: How do I implement custom list views in a powerapp?

In the project portfolio, there is a column entitled PHP. I want each PHP to only see their projects. Typically, they create their own items(projects) in the list, but in case they don't for some odd reason, I want the users to only see items where they are listed as the PHP.

 

Thank you.

Highlighted
Super User
Super User

Re: How do I implement custom list views in a powerapp?

@Anonymous 

What kind of column is the PHP column?  A person column or a text column or something else?

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Highlighted
Anonymous
Not applicable

Re: How do I implement custom list views in a powerapp?

It is a person or group column.

Highlighted
Super User
Super User

Re: How do I implement custom list views in a powerapp?

@Anonymous 

So, the quick and simple is to then have a filter like this for your gallery:

Filter(projectList, PNP.Email = User().EMail)

This will compare the email component of the PNP people column with the current user email.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

View solution in original post

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (11,445)