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 / Setting security (sort...
Power Apps
Answered

Setting security (sort of ..)

(0) ShareShare
ReportReport
Posted on by 602

Goodmorning, I'm trying to fix a problem I've been having in my app

 

Simply put.... I want to set the Visible value of an item based on the user().email and when I use the formula User().Email = (Emailadres) it works but I saw a video that said it's better to work with a variable so that the app doesn't have to ask the same question over and over again.

When people use it and only have 3G it may take a few seconds extra to load and so I've made a variable in App in the OnStart option called Set(varUserEmail; User().Email) but somehow it still wont show the tile which does show if I use User()Email so I'm guessing my variable is wrong ?

 

Can someone help me out here 

Categories:
  • Verified answer
    sgtsnacks64 Profile Picture
    322 Super User 2024 Season 1 on at

    Hi RvdHeijden,

     

    Silly question, but are you running "OnStart" in the editor window to apply the variable? 

     

    sgtsnacks64_1-1647338752721.png

     

     

    You can check the contents of the variable under View > Variables

     

    sgtsnacks64_0-1647338737334.png

     

    sgtsnacks64_2-1647338805000.png

     

  • Verified answer
    RvdHeijden Profile Picture
    602 on at

    @sgtsnacks64  omg....how could I forget 🤣🤣

  • sgtsnacks64 Profile Picture
    322 Super User 2024 Season 1 on at

    @RvdHeijden wrote:

    @sgtsnacks64  omg....how could I forget 🤣🤣


    Happens to the best of us 🤣

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard