Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Suggested answer

App Not Functioning Properly for Particular User

(1) ShareShare
ReportReport
Posted on by 64
There are a couple of examples within my app where the coding is fine and works as intended, except for a particular user. I have tried alternate coding which has the same result. I am thinking it is a problem not related to the coding, but not sure what. When I log in as the user on my desktop, the code works as it should, it just doesn't work on his phone.
 
The user where the code doesn't work as intended has a Google Pixel 6a, but another user where the coding works fine has the same phone. Both users have a Microsoft Business Standard license. I have checked the email associated with the problematic user, and it is the same used in the coding.
 
In the first example, I have an icon which has the following code under "Visible":
 
If(varToggleWorker = false And (User().Email = "name@domain.com" Or User().Email = "name@domain.com"), true, false)
 
The icon will not appear when the toggle is used for the problem user.
 
 
In the other example, there are fields which pull information from the selected item in a combobox. Again it works for all users except this one particular user.. here is the coding and a screenshot:
 
The description fields coding under default is as follows:
If(varMode="New",ItemComboBox.Selected.Description,Parent.Default)
and the 'client unit price' fields coding under default is as follows:
If(varMode="New", Text(Value(ItemComboBox.Selected.'Client Unit Price'),"£0.00"), Text(Value(Parent.Default, "£0.00")))
 
 
 
 
 



 
 
Categories:
  • Fart_Sniffer Profile Picture
    64 on at
    App Not Functioning Properly for Particular User
    Hullo!

    Timezone was setup correctly, but changing the regional setting from 'default' to 'UK' means that some information is now pulled correctly from the ComboBox (the description field). Any currency based stuff like "client unit price" is still not pulled.. and if I type something manually in the "client unit price" and "quantity", the "client total price" does not calculate properly. When the screen loads, the "client total price" starts at £0.00, then goes blank when something is entered in the "client unit price".

    There does appear to be a problem with the UPN:


    A label with User().Email shows the email as jake@avaloniangardens.com
    but
    a label with User().Email = "jake@avaloniangardens.com" says FALSE!

    I also have a gallery for Office365Users connector showing items set to ThisItem.UserPrincipalName, which displays the UPN as "jake@avaloniangardens.com"

    So there does appear to be a problem with the UPN, but the email seems to be identical? I don't know where to go from here, but hopefully this provides enough info for further troubleshooting?
     
    ​​​​​​​
  • Fart_Sniffer Profile Picture
    64 on at
    App Not Functioning Properly for Particular User
    Thank You FLMike, I haven't heard of a UPN before and the labels / suggestions are particularly helpful.
     
    The reason I went on a bit of a ramble is because I previously articulated the problems in isolation, and people became fixated on trying to make changes to the code. I wanted to put more emphasis on my general perception of the underlying problem to avoid a repeat of this!
     
    The guy will be back on Monday so I will take another look then and report back, have a great weekend  :)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    41,027 Super User 2025 Season 1 on at
    App Not Functioning Properly for Particular User
    Hi,
     
    So just for future purposes, please clearly lay out the issue and ask first, versus all the other stuff as its confusing to be told lots of stuff and then kinda the problem as you don't have a sense that clearly defines it.
    Example you wrote all this and never said what the problem is
     
    There are a couple of examples within my app where the coding is fine and works as intended, except for a particular user. I have tried alternate coding which has the same result. I am thinking it is a problem not related to the coding, but not sure what. When I log in as the user on my desktop, the code works as it should, it just doesn't work on his phone.
     
    The user where the code doesn't work as intended has a Google Pixel 6a, but another user where the coding works fine has the same phone. Both users have a Microsoft Business Standard license. I have checked the email associated with the problematic user, and it is the same used in the coding.
     
    Here is my assumption on this user.
     
    The Email for a user and their UPN, while they SEEM to be the same thing they are not. So what can happen is, a person has multiple looking "emails", when in fact their UPN isn't what you expect it to be.
     
    This means either
    1) You need to have a hardcoded check for that user to correctly "compare" their email, versus the UPN
    2) or you need to create a mapping table/list somewhere to do it.
    3) they have different language settings on their phone so it messes up the values (email and currency etc)
     
    Many times you can tell if this is the issue by simply adding a label or 2 to the screen
    When that person logs in, have this information User().Email = "name@domain.com" , in the Text such as User().Email & "=" & "name@domain.com" 
     
    Validate from there that they in fact match and that both are all lower case etc and that in no way is the UPN versus email being used.
    Many times if you look at their contact in Outlook, it will show email and primary email and they will be different.
     
    But since its on his phone, I suspect its the language or other setting on the phone itself. So putting the labels will show you the values and make sure in fact that its wrong.
     
    Make sure to check the Time Zone etc on his phone too
     
     
     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard