Showing results for 
Search instead for 
Did you mean: 
Helper II
Helper II

Expression on the OnStart module return blank()

I have a simple expression on the OnStart module not returning my email rather display error. It was working before and suddenly stopped. Same script works when I use it on a text control. I cant figure out what is wrong😥 please help



Super User
Super User

Hi, try Set(CurrentUser, User()) and then when you require the email use CurrentUser.Email. If this doesn't work make sure you haven't set CurrentUser anywhere else with a different value type. 


In developer mode you need to select the App in the tree, press the three dots and press run on start to execute the code

The issue persist 😫

Super User
Super User

Have a read of the below article, there are a few things you can try near the bottom. 
This may be a solution ThisUser = LookUp( Users, Email = User().Email )

Also try to adding the Set() to the screen On Visible. 


I have tested this in the UK and I can use both solutions without issue.

App.StartScreen: a new declarative alternative to Navigate in App.OnStart | Microsoft Power Apps

Helper II
Helper II

The above did not work.


I have to rollback to where the script worked correctly previously.

Helpful resources

Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,266)