I've got a Collection that is currently created in OnStart, but that can be refreshed by the user clicking a button or a refresh icon. So I've currently got the ClearCollect() formula populated in 3 different places, and it's gotten a bit complex as it uses Filter() and AddColumns() and some other logic.
I'd like to NOT need to maintain this same logic behind 3 different controls (App.OnStart, Button.OnSelect, and Icon.OnSelect). I was hoping that Named Formulas would work for me. I've enabled the feature, put the logic into there as
RefreshTestCollection = <copied logic>;
RefreshProdCollection = <copied logic>
But now I cannot for the life of me figure out how to execute those formules in OnStart and behind the button/icon controls. Any help is appreciated.