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

[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!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,301)