cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
David123
Level: Powered On

Run Startup code when developing

In this PowerApps app that I inherited, there is code in the App section that apparently runs when the program starts.  And it apparently does not run when developing/editing the app.  I do not understand the logic behind this decision among the creators of PowerApps (or many other things about PowerApps).   This is a basic question I'm sure everyone has on day one of using PowerApps.  

My question is, if code is essential to the functioning of an app upon startup, how do you get that code to execute when starting up in develpment mode? 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Run Startup code when developing

@David123 

OnStart will run when you first go into the edit mode of an App.  If you need to run it again, you can do so easily by selecting the App in the navigator and choosing to run OnStart

rh2.png

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

View solution in original post

1 REPLY 1
Super User
Super User

Re: Run Startup code when developing

@David123 

OnStart will run when you first go into the edit mode of an App.  If you need to run it again, you can do so easily by selecting the App in the navigator and choosing to run OnStart

rh2.png

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

View solution in original post

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,955)