cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Meneghino
Level 10

How to run a behaviour formula when an app opens?

The latest release notes indicate that we can now run a behaviour formula when an app opens (point 7 below).

However, as usual, the documentation is pretty poor and gives no indication as to what has actually changed and how to use this supposedly new feature.  I am not sure how this is different to what we have been able to do for a long time: to run a behaviour formula with the OnVisible property of the first/landing screen.

Does anyone have any better information?

Thanks.

PS @Yahya may be interested 

 

Release 2.0.650-2.0.651

  1. Save changes to a shared app, and then publish them later.
  2. Add prepopulated galleries that have rich layouts and that automatically show data from some of the most commonly used standard entities in the Common Data Service.
  3. Customize the columns in a Data table control, and copy and paste that type of control.
  4. In PowerApps Studio for web, undo/redo changes, and create/edit flows.
  5. Specify a SharePoint list by name if isn't listed by default.
  6. Configure a form control by using an improved UI.
  7. Run a behavior formula when an app opens
1 ACCEPTED SOLUTION

Accepted Solutions
Power Apps Staff CarlosFigueira
Power Apps Staff

Re: How to run a behaviour formula when an app opens?

The behavior can be defined on the 'OnStart' property of the app. This property is available in the first screen of the app.

ForumPost001.PNG

From the description of the property in https://powerapps.microsoft.com/tutorials/control-screen/:

"The OnStart property is actually a property of the app, not the screen. For editing convenience, you view and modify it as a property on the first screen of your app. If you remove the first screen or reorder screens, this property may become hard to find. In this case, save, close, and reload your app, and the property will reappear as a property of the first screen."

 

View solution in original post

4 REPLIES 4
Power Apps Staff CarlosFigueira
Power Apps Staff

Re: How to run a behaviour formula when an app opens?

The behavior can be defined on the 'OnStart' property of the app. This property is available in the first screen of the app.

ForumPost001.PNG

From the description of the property in https://powerapps.microsoft.com/tutorials/control-screen/:

"The OnStart property is actually a property of the app, not the screen. For editing convenience, you view and modify it as a property on the first screen of your app. If you remove the first screen or reorder screens, this property may become hard to find. In this case, save, close, and reload your app, and the property will reappear as a property of the first screen."

 

View solution in original post

Meneghino
Level 10

Re: How to run a behaviour formula when an app opens?

Thanks for clarity @CarlosFigueira!

 

In the documentation you linked to it says the following:

"OnStart – The behavior of an app when the user opens it or starts to record with a Microphone control."

 

What is this about a Microphone control?  Is this a typo?

 

Thanks again.

Power Apps Staff CarlosFigueira
Power Apps Staff

Re: How to run a behaviour formula when an app opens?

That's probably a bug in the system that generates the documentation. The Microphone also has a behavior called 'OnStart', so I'm guessing it was added to the documentation for the screen. You can safely ignore that part - I'll file a bug to get it fixed.

Yahya
Level 10

Re: How to run a behaviour formula when an app opens?

This should not be marked as Solved, as of yet. Still: How OnStart works? 

 

If using Screen OnVisible, I cannot run a formula, still OnStart, i cannot, for instance, Enable/Disable a Button. So what is going on?

 

On more thing: better remove the OnStart from First Screen properties, better place it somewhere inside the ribbon since it is App related.

 

Helpful resources

Announcements
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.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

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 (9,959)