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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Error happened_ Visibl...
Power Apps
Unanswered

Error happened_ Visible setting based on other column

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi The powerapp is connecting 2 share point list as the data source.

 

The first list data is used for main screen.

There is one Field I want it only visible when the user is Admin.

 

The other list is the Admin list.

User is Person/group column, Person is Text with mail address.

 

TiffanyJo_0-1673857952364.png

I set  App OnStart 

Set(varUserEmail, User().Email);
If(CountRows(Filter('AppAdmins',varUserEmail in Person)) > 0,Set(varUserAssignee,true),Set(varUserAssignee,false));

 

However there is warning message as below:

TiffanyJo_1-1673858490060.png

I would like to confirm how to resolve it.

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,290 Most Valuable Professional on at

    Hi @Anonymous ,

    This should do the whole process assuming Person is a Text field

    Set(
     varUserAssignee,
     !IsBlank(
     LookUp(
     'AppAdmins',
     Person = User().Email
     ).Person
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @WarrenBelz Thank you very much! But the error happens as below.

    Could you please kindly tell the reason?

     

    TiffanyJo_0-1673859582745.png

     

  • WarrenBelz Profile Picture
    155,290 Most Valuable Professional on at

    @Anonymous ,

    That is the field name you provided in your code - how can it not be valid now? What type of field is Person in your AppAdmins list ?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi, Person is Text column with mail address.

  • WarrenBelz Profile Picture
    155,290 Most Valuable Professional on at

    Hi @Anonymous ,

    I am rather confused here - your original code

    If(
     CountRows(
     Filter(
     'AppAdmins',
     varUserEmail in Person
     )
     ) > 0,
     Set(
     varUserAssignee,
     true
     ),
     Set(
     varUserAssignee, 
     false
     )
    );

    simply showed a Delegation warning on the in filter (as expected), but now you are saying that this Text column in the list AppAdmins called Person which is valid above is not valid in

    Set(
     varUserAssignee,
     !IsBlank(
     LookUp(
     'AppAdmins',
     Person = User().Email
     ).Person
     )
    )

     Below is a test I did on a list here where EmailAddress is a Text field in Users

    WarrenBelz_0-1673922902801.png

    with the result (I am in the list)

    WarrenBelz_1-1673922970045.png

    Have you changed the field name from something else here ?

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,045

#2
Valantis Profile Picture

Valantis 675

#3
11manish Profile Picture

11manish 592

Last 30 days Overall leaderboard