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 / Gallery Customization
Power Apps
Answered

Gallery Customization

(0) ShareShare
ReportReport
Posted on by 42

Hi there!

 

I am developing a Event organizing application.

 

The gallery page -contains a gallery with all event requests- will be accessed by 3 types of users (Requester, Manager, Approver) see below:

HadilH_0-1659865081317.png

 

 

If the user is Requester, view the events created by him only.

If the user is Manager, view event requests created by all users.

If the user is Approver, view the events that his email was added for (Explanation in the below screenshot)

HadilH_1-1659865081321.png

 

The Manager should choose the Approver name from the highlighted dropdown.

 

Please not that I have a list with every user type, expect the Requester, will be taken from Created by Column.

 

Any advises on what are the functions to perform this?

 

Thanks a lot in advance.

Categories:
  • Akash17 Profile Picture
    Super User 2024 Season 1 on at

    Hi

    If you want to show the records in the gallery based on user type like requester ,manager etc

    then on Gallery you can filter the data

    Filter('Table', CreatedBy.Email=User().Email)

    please refer

    https://www.matthewdevaney.com/3-ways-to-filter-a-power-apps-gallery-by-the-current-user/#:~:text=Go%20to%20Advanced%20Settings.,do%20to%20set%20it%20up.

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @HadilH,

    Have you solved your problem?

    Do you want to filter the Gallery based on current user?

     

    Set the Items property of the Gallery as below:

    If(!IsBlank(LookUp(UserTypeList,UserType=Manager).UserName=User().Email),List,If(!IsBlank(LookUp(UserTypeList,UserType=Approver).UserName=User().Email),Filter(List,UserColumn=User().Email)),Filter(List, CreatedBy.Email=User().Email))

    Not sure how you configure the list that you populate the Gallery with, I just assume there is a UserColumn saving all the user with different user types.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard