web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Have Gallery display o...
Power Apps
Answered

Have Gallery display only the items created by current user

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

I am currently working on an app where mulitple users will be submitting forms that write back to SP. I currently have a gallery that shows all the forms that were created and can be edited through the gallery. Currently it is showing all the forms created. How do i make it so that it just displays the forms of whoever is logged into the app?

 

The app linked thorugh O365

 

Please let me know if you have any addtional questions. 

 

Thanks

Categories:
  • RezaDorrani Profile Picture
    12,145 on at

    Hi @Anonymous 

     

    On App Load, create a variable to store the current user email or object

     

    Set(varCurrentUserEmail, User().Email)

     

    For gallery use filter function on Items property

     

    Filter(DataSource, 'Created By'.Email = varCurrentUserEmail)

     

    Plz note :- this would give you a delegation warning because Created By is a person or group type column which is a complex column (delegation will return upto 2000 records only)

     

    In order to avoid delegation, create another column called "CreatedByText" and store the created by users email in there

    then you could use

     

    Filter(DataSource, CreatedByText = varCurrentUserEmail) which would avid the delegation warning

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

     

  • Verified answer
    h-nagao Profile Picture
    392 on at
    Hello,
    I found same question in forum. You can find solution for your case from below:

    https://powerusers.microsoft.com/t5/General-Discussion/Filtering-a-gallery-by-user/m-p/133511#M46359

    Thank you

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard