I have customized a SharePoint form using PowerApps and I have a huge formula in the OnSave event of the SharePointIntegration control.
Inside the form I put a "SAVE" button on which I wish to trigger the OnSave event, instead of duplicating the formula.
Anyone knows how to do that ?
Solved! Go to Solution.
Could you please share a bit more about your scenario?
Do you want to trigger the OnSave Event of SharePointIntegration control from another button without using duplicated formula?
I have made a test on my side, if you want to trigger the OnSave Event of SharePointIntegration control from another button without using duplicated formula, I afraid that there is no way to achieve your needs in PowerApps currently.
If you would like this feature to be added in PowerApps, please submit an idea to PowerApps Ideas Forum:
like the other user said there is no way to trigger the OnSave() property.
If you have a huge formula you want to use a few times, you could create a button, set its visiblity to false, and whenever you want to execute this code execute "Select(nameOfMyButton)".
Until PowerApps adds the ability to add functions/methods, i believe this to be a workaround.
Fill out a quick form to claim your user group badge now!
Find out where you can attend!
Features releasing from October 2019 through March 2020
Learn how to build the business apps that you need.