This is a re-post of a question I asked today where the post was immediately set as spam (???).
Not sure why it was set as spam!
I've been researching into users and all the metadata that goes with it, and have come across a question for an idea I have, but don't know how to implement.
So, a user is logged into an app. Their email is email@example.com. I know this from User(). I have a sharepoint list of emails.
I want to have a filtered gallery where the users email is checked against the sharepoints list of emails, and if true, show data, if not, show nothing.
So if firstname.lastname@example.org was in the list, the user would gain access to view data in the gallery. If a users email was not in the list, they would not see the data.
Sorry if it poorly explained!
Thanks in advance
Go to Solution.
Assuming the user is recorded in a person/group column and that the column isn't set to allow multiple users, then its a simple filter statement
Filter(SharePointlist,'personcolumn'.Email = currentuser)
make sure you save the user's email as a variable in the App OnStart or the Filter won't be delegable.
View solution in original post
Check out these cool Power Apps & vote on your favorite!
Check out whats happening in Power Apps
FIll out a quick form to claim your community user group member badge today!
Features releasing from October 2020 through March 2021