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.
Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.
Check out the winners of the recent 'Can You Solve These?' community challenge!
Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.
Featuring samples like Return to the Workplace and Emergency Response Applications
Features releasing from October 2020 through March 2021