PowerApps: How to reuse your code (at least in the same screen)

From version 2.0.702 we have a new function called Select(), which allows you to select (i.e. press/click) another control on the same screen or in the same container (i.e. a gallery’s template).

This means that you can set the OnSelect property of a hidden label (MyLabel) with some series of actions (i.e. reusable code), and then initiate these actions from any other control by using Select(MyLabel).

This is a great improvement, let’s hope we can do this across the whole app at some point.

Leave a Reply

Your email address will not be published. Required fields are marked *