It's been a frustrating week developing a very simple app. I've actually been working on TWO simple apps. In one app, my variables are setting up quite nicely. A simple thing like:
Set(varUserEMail, User().Email);
....works fine in one app's OnStart section, but not in the other.
I also can't use varUserEmail as a variable to determine who is using the app and direct them to the appropriate screen based on access. In the failing app, even resorting to using User().Email is failing to direct the user to the right screen since it doesn't evalute.
I have opened up a ticket with Microsoft as this doesn't seem to be a syntax issue and after reviewing my code, agreed it wasn't a syntax issue. They then advised me to start OVER because they couldn't figure it out.
Even moving the variable setting out of the OnStart section yields no success.
Good app:
Set(varUserEmail, User().Email)
If(varUserEmail="user1@mailstop.com" Or VarUserEmail="admin@mailstop.com", Navigate(Admin_Screen, Transition.None);
Bad app:
Neither this:
If(User().Email="user1@mailstop.com" Or User().Email="admin@mailstop.com", Navigate(CheckIN_AdminScreen, Transition.None);
NOR THIS:
Set(varUserEmail, User().Email)
If(varUserEmail="user1@mailstop.com" Or VarUserEmail="admin@mailstop.com", Navigate(CheckIN_AdminScreen, Transition.None);
...will work in the bad app.
Help! I need to get this simple app done.
Take a screenshot of where you put the formula
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
I think your last formula should be closed with )
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Check out new user group experience and if you are a leader please create your group
Did you miss the call?? Check out the Power Apps Community Call here!
See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.
User | Count |
---|---|
254 | |
249 | |
82 | |
37 | |
30 |
User | Count |
---|---|
300 | |
264 | |
117 | |
65 | |
45 |