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

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

View solution in original post

@VijayTailor  Thank you 🙂

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

PA Community Call

Power Apps Community Call

Next call is happening on April 21st at 8a PST.

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (19,121)