Announcements
I have a gallery in one of my screen where i would like show filtered items from a sharepoint list and the filter condition is that a column in the list (PersonEmail) contains User().Email
I would like to show these records to the user
Please let me know how can i achieve this ?
Use
Filter (YourDatasource,PersonalEmail=User().Email)
------------If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Hi @vish_p :
Could you tell me:
Because I don’t know the specific situation, there are two examples:
Case 1:Text type/a string of multiple email addresses
try this code:
Filter(yourdatasource,User().Email exactin PersonEmail)
Case 2:Choice type/allow multiple selections.
Filter(yourdatasource,User().Email in PersonEmail.Value)
I think this link will help you a lot:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/operators
Best Regards,
Bof
@v-bofeng-msft PersonEmail is choice field where multiple selection is allowed thats why i wanted to use contains,i tried using "in" operator but it is not giving desired result
Did this code fail?(Filter(yourdatasource,User().Email in PersonEmail.Value))
What is the error?
Could you give me a screenshot of the code area?
Filter (YourDatasource,PersonalEmail.Value=User().Email)
Or
Filter (YourDatasource,User().Email in PersonalEmail.Value)
@eka24 @v-bofeng-msft
I tried both, for one formula(Filter(TODOLIST,User().Email = PersonEmail)) i am getting an "Invalid argument type"error and the other one(Filter(TODOLIST,User().Email in PersonEmail)) doesn't filter data at all
Have you tried PersonEmail.Value instead of PersonEmail?
@v-bofeng-msft Yes tried that as well, it is not returning any data
Could you show me a screenshot of the code area?Usually the wrong place will be marked.
In addition,using in PersonEmail.Value instead of = PersonEmail.Value
@v-bofeng-msft for some reason i am not able to upload any photo here
but When i use "Filter(TODOLIST,User().Email in PersonEmail.Value)" no error is shown and no items are returnedwhen i use "Filter(TODOLIST,User().Email = PersonEmail.Value)" invalid argument type error is shown at equal to symbol
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 236 Super User 2026 Season 2
WarrenBelz 207 Most Valuable Professional
Mohsin Ali 169