I have a Edit Icon that I have set to visible off. I only want it to show only when the current user is looking at there record. has a person field that equals the current user email.
I have tried
Office365User.MyProfile().Mail - Returns my email
User().Email - Returns my email
I has also setup varUserEmail - returns my email
Can not figure how to compare any of this with people field in the record.