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 / OnStart - Am I doing s...
Power Apps
Answered

OnStart - Am I doing something wrong?

(0) ShareShare
ReportReport
Posted on by 421

I'm using the web version of the studio.

 

In OnStart, I want to create a variable with the User().Email as a value - I was hoping then I could use that in a filter for a data source instead of directly using User().Email, as that is apparently not delegable (based on the blue info dot and message).

 

But my variable doesn't seem to be set on start.

 

Function:

Set(CurrentUser, User().Email)


I put a label on the form with a value of CurrentUser, run the app, and the variable doesn't appear to have its value set.

 

I also tested using a Navigate function, but that also didn't appear to do anything - on start, I remained on the same screen.

 

Any ideas where I'm going wrong?

Categories:
  • Verified answer
    Meneghino Profile Picture
    6,949 on at
    Hi, I did the same and it worked for me. You need to reopen the app in ordert for the OnStart to be triggered.
    I use the desktop Studio.
    PS There is another very good reason to cache the user value in a varible, that otherwise the function gets called every time it is used and slows performnce.
  • hilary_stoupa Profile Picture
    421 on at

    Thank you - the trick was to reopen the app, which I hadn't realized. 

  • OSBSoto Profile Picture
    102 on at

    Hi, I had been trying to accomplish this in 2020; but as long I am on the studio works but when I preview or publish the app, it doesn't load any information became a big blank space. Any idea?

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard