Showing results for 
Search instead for 
Did you mean: 
Level 8

Cant set context variable in OnVisible

Hi ,

I got a simple one scrren app with two label controls.

In the OnStart I have UpdateContext({UserEmail:User().Email})


Text value of the first label  is set to UserEmail

Text value of the second label  is set to User().Email


The first textbox shows my email, the second textbox does not.

Why is that?



Super User
Super User

Re: Cant set context variable in OnVisible


UpdateContext is not supported with OnStart. The documentation has the fancy explanation why. 


What are you trying to accomplish? Can we maybe do it a different way?

Shane - Microsoft MVP, YouTube, and PowerApps Consulting for when you are in a bind to get this fixed quickly. And finally we now have PowerApps Training

Helpful resources


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020


Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 435 members 6,319 guests
Please welcome our newest community members: