cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
itsgp
New Member

Powerapps - People Picker - This formula uses scope

Hi,

I have a button in my gallery (connected to  SP List) ... I want to show the button if the current login user is Project Manager (Project Manager is people Picker column in my SP List)... I used the below condition on the visible property of the button ...

However I am not able to execute this .. its giving me a message that "This formula uses scope, which is not presently supported for evaluation" ... please help me on this. ....

 

If(ThisItem.PROJ_QE.Email = User().Email, true, false)

 

PROJ_QE -- Project Manager People picker column. 

1 ACCEPTED SOLUTION

Accepted Solutions
v-jefferni
Community Support
Community Support

Hi @itsgp ,

 

Is the Project Manager person column in the same list as the data source of the Gallery?

 

If it is, you'd better use another Lower function to eliminate the interference of case. Below are the steps:

1. OnStart of the App:

Set(varEmail,Lower(User().Email))

vjefferni_1-1635924542350.png

 

2. Visible of the button inside the Gallery:

If(
    Lower(ThisItem.'Project Manager'.Email) = varEmail,
    true,
    false
)

vjefferni_2-1635924610220.png

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

 

View solution in original post

2 REPLIES 2
cchannon
Super User
Super User

Check to make sure your picker and your user data both display properly on the form. If they both resolve cleanly (i.e. data types match and are simple), this should not be an issue.

v-jefferni
Community Support
Community Support

Hi @itsgp ,

 

Is the Project Manager person column in the same list as the data source of the Gallery?

 

If it is, you'd better use another Lower function to eliminate the interference of case. Below are the steps:

1. OnStart of the App:

Set(varEmail,Lower(User().Email))

vjefferni_1-1635924542350.png

 

2. Visible of the button inside the Gallery:

If(
    Lower(ThisItem.'Project Manager'.Email) = varEmail,
    true,
    false
)

vjefferni_2-1635924610220.png

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

 

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Users online (2,121)