cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
octaking
Level: Powered On

Compare a person type field with the current user

I have a person type field and I want to compare it with the current user

to filter items

I am using the following formula:

Filter (List, PersonField = CurrentUser)

 

but this formula gives error in the sign =

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Compare a person type field with the current user

The Person field is an object so you need to pick the property you want to compare.  Try this instead.

Filter (List, PersonField.Email = User().Email)


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

1 REPLY 1
Dual Super User
Dual Super User

Re: Compare a person type field with the current user

The Person field is an object so you need to pick the property you want to compare.  Try this instead.

Filter (List, PersonField.Email = User().Email)


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Helpful resources

Announcements
thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Solution Authors
Top Kudoed Authors
Users online (6,662)