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

Filter gallery items based on login user

Hello All, @RandyHayes 

 

I am trying to filter a gallery items based on login user.

I have 2 "Person or Group" fields (Employee & Hirining Manager) from the SharePoint list.

so i would like to see all items where my name is in the hiring manager field or if my name is in the Employee field.

 

i tried using something like below but didnt work and need your advise please!

 

Filter('Test List', 'Test List'.'Hiring Manager' = User().Email)

or 

Filter('Test List', 'Test List'.'Employee' = User().Email)

 

Note: Test List is the SharePoint list

"Hirining Manager" and "Employee" are (Person or Group) type of field

 

please find attached screenshot for details, any ideas please!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Filter gallery items based on login user

Hi @EMohaisen ,

 

Please try below formula instead:

Filter('Test List', Or(Hiring_xx20_Manager.Email = User().Email,Employee.Email = User().Email))

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: Filter gallery items based on login user

Hi @EMohaisen ,

 

Please try below formula instead:

Filter('Test List', Or(Hiring_xx20_Manager.Email = User().Email,Employee.Email = User().Email))

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Community Champion
Community Champion

Re: Filter gallery items based on login user

Thank you for posting in the community @EMohaisen - can you review the above reply and update the thread if it was helpful? 

 

Thank you,

 

@TopShelf-MSFT 

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (11,005)