Great hack to avoid writing same code again and again..Thanks Eric Niemiec
Based on the current evolutionary state of this great new cross platform Office 365 focused application service, it is very difficult to built reusable code snippets in Microsoft PowerApps so we don’t have to cut and paste code all over the application. While this might not seem like a big deal in smaller applications, but larger and more complex applications quickly become impossible to manage and making one small change is a nightmare to track down everywhere the code needs to be updated.
One very easy way I found to build and execute reusable code snippets in Microsoft PowerApps is to add a non-visible Toggle control to your form and add all of your executable code to the OnCheck property of this control. Next, create a single local variable and add it to both your Default and Reset properties of the Toggle control. Add an UpdateContext line to the bottom…
View original post 603 more words