cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gumgih
Helper II
Helper II

Restrict Users to view only their specific records in Gallery

Hi All,

I'm new in PowerApps development, want to build a functionality to show manager specific records in Gallery based on their email address stored in SharePoint list.

 

for e.g. if Mike logins than he can only see his pending records in Gallery, not other managers' records stored in the Sharepoint list.

 

currently filtering the gallery based on 2 dropdowns (Manager and User) selections, using the below function. attached is the screenshot for the same.

Search (Filter ('DS05.02.17_Review_database_accounts','Manager Mail Id'=Dropdown1_2.Selected.Result && 'Request Status' = Dropdown1.SelectedText.Value),Dropdown2.Selected.Result,"User_x0020_Name")

 

Thanks,

Mayank

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
VijayTailor
Resident Rockstar
Resident Rockstar

Hi @gumgih ,

You can use like below.
varCurrentUser.Email= User().Email

VijayTailor_0-1602005167924.png

Thanks,

Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."-Vijay

View solution in original post

2 REPLIES 2
VijayTailor
Resident Rockstar
Resident Rockstar

Hi @gumgih ,

You can use like below.
varCurrentUser.Email= User().Email

VijayTailor_0-1602005167924.png

Thanks,

Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."-Vijay

@VijayTailor  Thank you 🙂

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,472)