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
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 😫
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
The above did not work.
I have to rollback to where the script worked correctly previously.
User | Count |
---|---|
257 | |
108 | |
93 | |
57 | |
40 |