Showing results for 
Search instead for 
Did you mean: 
Advocate I
Advocate I

Global Variables on (Run OnStart) are no longer working

I have an APP that quit retrieving the global variables on Run Onstart. This happened for no apparent reason and I cannot figure out how to troubleshoot it. I have reverted back to a previous version of the App (didn't solve it); I disconnected and reconnected the data sources (didn't solve it either); 



Advocate II
Advocate II

I was running into something similar, so I put it in the OnVisible of the first screen instead, and it seemed to work. Strange things. I do think that even when it wasn't working properly in the editor with the global variables in the OnStart, it might have still been working in the published version of the app for the users.


The other method you might try that has been a failsafe for me is to set the variables in the OnSelect value of a button, and set the Visible property of the button to false. Then, in the OnVisible of the first screen, put Select(Button1) to trigger the code.


Gotta love workarounds 🙂

Advocate I
Advocate I

Resolved - I spotted the error.


Thanks for responding. I didn't look for enough down the on start code for a missing paren. (Sometimes the simplest of things trip you up after resolving more complex issues : )


Helpful resources

PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!


Are Your Ready?

Test your skills now with the Cloud Skill Challenge.


Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (89,173)