cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Leinad
Frequent Visitor

Filter on SP list in PowerApps

Can someone help me getting the right string to this. Or on the right path

Iin Powerapps I have an SP overview list, what shows all entries made from all users, can I filter the view to only show the entry made from the current user in the app.
1 ACCEPTED SOLUTION

Accepted Solutions
Leinad
Frequent Visitor

Used seach function, working now. Thanks for the reply.

 

 

View solution in original post

4 REPLIES 4
leyburn19
Memorable Member
Memorable Member

On the first screen create a variable in the property onstart:

 

set(VarUser,user.Fullname)

 

Then use this to filter your gallery EG:

 

Filter(Source,Author=VarUser)  I think Author is teh field that stores the user name.  It might be "created"

 

Leinad
Frequent Visitor

Hej leybrun19

 

Can I Filter by Author in BrowseGallery ? I can not select Author as an Label in Gallery, or can I do that ? 

 

Created is the time and date on when the new item was created on on the SP list.

 

 

leyburn19
Memorable Member
Memorable Member

Ok - Authour does not allow selection and it might not be teh right person.   

 

In some apps I have added a ownername column and owner email so, when adding new records I:

 

 

If I use Patch()   I have it set a owner column to the User().Fullname and Email column to User().Email

 

If I use an edit form I add these columns and set  field defaults to User().Fullname etc  then hide the fields

 

I then do what I described above so teh user only sees their own records.  Yu need to put it in the variable firts as if you use the User().Fullname etc in the filter yu get a delegation notice. With the variable you do not

Leinad
Frequent Visitor

Used seach function, working now. Thanks for the reply.

 

 

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (72,366)