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

[HELP] SHOW ITEMS IN SHAREPOINT TO SELECTED USERS

Hello Everyone, 

 

I need some help regarding showing items created based on the requestor and created by.

 

Scenario:

I have a list in sharepoint name portfolio that has columns "Request by" "Name" "Created By". I have a gallery that shows items from sharepoint based on requested by.

if i logged in in power apps name dogs@ms.com, the only request i see in the gallery is the request by dogs@ms.com, 
But what i want to see is: If I requested as dogs@ms.com and put requested by cats@ms.com. dogs and cats should see the displayed request in the ...

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
zmansuri
Super User
Super User

App.OnStart

Set(varUser,User()) 

This will store current logged in user's info into variable named varUser

 

In the gallery Item code write this

Filter(portfolio , 'Request by' .Email = varUser.Email || 'Created By'.Email = varUser.Email)

View solution in original post

3 REPLIES 3
zmansuri
Super User
Super User

App.OnStart

Set(varUser,User()) 

This will store current logged in user's info into variable named varUser

 

In the gallery Item code write this

Filter(portfolio , 'Request by' .Email = varUser.Email || 'Created By'.Email = varUser.Email)

View solution in original post

Thanks this is it 🙂

 

Glad it worked

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,161)