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.onstart doesn't wo...
Power Apps
Answered

App.onstart doesn't work automatically

(0) ShareShare
ReportReport
Posted on by 403

I have an application in power apps

Jupyter123_0-1668749879400.png

 

in app.onstart i wrote a code 

basically that code has a variable and it will count number of rows in sharepoint list and store that result in a variable which i created

and later i used that variable inside in application using some condition 

so whenever i run my application, the variable which i created in app.onstart doesnt get updated unless i click manually 

app.Run onstart.

Categories:
I have the same question (0)
  • Fredrik_A Profile Picture
    3,644 Super User 2026 Season 1 on at

    What do you mean by doesnt work automatically?

     

    If you are in the editor you need to manually run it by pressing the 3 dots and then "Run OnStart"

  • Jupyter123 Profile Picture
    403 on at

    let's say if other user checks my app, the app.onstart doesn't work at beginning (i have a code over there) @StretchFredrik 

  • Fredrik_A Profile Picture
    3,644 Super User 2026 Season 1 on at

    Stupid question, but did you publish the app since you last added the Onstart?

  • Jupyter123 Profile Picture
    403 on at

    @StretchFredrik sorry about the weird question, im new to power apps and yes i published and told someone to check my app

    but the app.onstart doesn't get updated

  • Fredrik_A Profile Picture
    3,644 Super User 2026 Season 1 on at

    Does the user in question have access to the datasource? In this case the SharePoint

  • Jupyter123 Profile Picture
    403 on at

    yes @StretchFredrik , the user has access to sharepoint

  • Verified answer
    Jeroen J Profile Picture
    on at

    Not sure if you already solved this, but could it be possible that you're experiencing this from within the power apps designer?

    If so, it's true that you have to run App.OnStart manually before F5'ing to your app. That's a feature, because you might not always want it to run (again).

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard