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.
We're excited to announce our first cross-community 'Can You Solve These?' challenge!
Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.
We are excited for the next Super User season.
FIll out a quick form to claim your community user group member badge today!
Features releasing from October 2020 through March 2021