web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / App stopped getting us...
Power Apps
Answered

App stopped getting user account

(0) ShareShare
ReportReport
Posted on by 14

Hello,

 

I have a canvas app that on start-up assigns User().FullName to a variable.  It worked without fail until 1-2 weeks ago and then suddenly stopped  The app opens fine and I have no issues with accessing any of the other Office products so the browser has authenticated me.  I didn't make any changes that should have affected it.

 

- I did check to make sure that "Block 3rd party cookies" is unchecked.

- I'm using Edge browser Version 95.0.1020.44 (64 bit)

- I just checked and also have the same issue if you open the app within Teams.

 

Any suggestions on how to resolve would be most appreciated!

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,924 Most Valuable Professional on at

    Hi @Dave10 ,

    There is no reason that should be happening (and I actually set that in OnStart in every one of my apps) - what is the actual code you are using?

  • Dave10 Profile Picture
    14 on at

    Hi @WarrenBelz ,

     

    In OnStart I have Set(usr, User().FullName)

     

    I also added 2 labels 

    Label1 with Text = User().FullName 

    Label2 with Text = usr

     

    When the app starts, Label1 shows the name, Label2 is blank

     

    The issue presents across multiple devices and users.  


    Dave

     

     

  • WarrenBelz Profile Picture
    154,924 Most Valuable Professional on at

    @Dave10 

    Do you have any navigation on App OnStart?

  • Dave10 Profile Picture
    14 on at

    @WarrenBelz 

     

    This is a ticketing system.  Default screen is a screen with a gallery of the tickets.  Navigation only if the application is started from a link to a specific ticket that is contained in an e-mail generated from within the App, in which case the edit screen for the ticket is opened in view mode.  

     

    Full Onstart content is:

    Set(usr,User().FullName);
    Set(varTktID, Value(Param("tid")));
    If (varTktID <> 0, Set(varRecord, LookUp(TickIts, ID = varTktID)); Set(varEditMode,FormMode.View); Set(varEditHead,"View"); Navigate(EditTicketForm))

     

     

  • Verified answer
    Dave10 Profile Picture
    14 on at

    @WarrenBelz 

     

    Hey Warren, I wanted to give an update.

    Your thinking was correct.  The issue was related to the Navigate.  I ended up coming across this article.

    I moved the Navigation per the instructions into App.StartScreen and everything started working again. Thanks for the clue.


    Dave

     

  • WarrenBelz Profile Picture
    154,924 Most Valuable Professional on at

    Hi @Dave10 ,

    Try putting it on the OnVisible of all screens you are likely to land when first opening - also ensure this switch is turned on 

    WarrenBelz_0-1636158572561.png

    The new OnStart and StartScreen process is causing some problems with apps using conditional navigation code on deep links. Fortunately you can set that value elsewhere.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • WarrenBelz Profile Picture
    154,924 Most Valuable Professional on at

    @Dave10 ,

    Please beware that if you have anything set in App OnStart, you cannot rely on it to be set by the time the screen opens - I have issues with an app of mine where the form mode is dependant on an incoming parameter.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard