web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Show Power Apps Form F...
Power Apps
Unanswered

Show Power Apps Form Fields only to the person who's email address is showing in the SharePoint Person or Group Field

(0) ShareShare
ReportReport
Posted on by 516

I have a form field, where there is a supervisor  email address  end user input the information. the email address is a people picker also known as a SharePiont list column -Person or Group form field where the show field is E Mail.

that email address, will allow the supervisor to see the enter form and the approval form fields  that they have to fill out.

 

the approver form fields can ONLY be seen by the person who's email address is in the Supervisors email form field.

this seems to be no longer working for me when I test the form:
SharePointIntegration.Selected.'Supervisor Email'.Email=CurrentUser.Email

 

Side Note:

I was recently added to the 0365 users .. only a select test group of people were moved to the 0365 users...  could this be why I no longer see the Supervisor form fields, due to the above code is wrong for  0365 users?

 

I will have a blended mix of users AD and 0365 users for a while... is there a way to capture both for the form requirements?

the only change to our environment is that  some people have moved from AD to 0365 users. I'm still waiting to hear if people that have not been moved to 0365 are having issues.

 

Categories:
I have the same question (0)
  • RMCoder Profile Picture
    219 on at

    If you get CurrentUser.Email using the built in User() function, it returns the UPN of the person signed in to the platform/app— their “account”, essentially.

     

    I would first validate what email it returned for you in the first place (easy as putting a label somewhere on your app to display it, or inspect the variables in the editor).

     

    When you were moved to O365, were you given a new set of credentials?


    I believe that the equality comparison is case-sensitive so you could also be getting false results because of that. If so, you could use the Lower() or Upper() functions on both sides of the comparison to make them the same case.

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.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 740 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 342 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard