cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Resident Rockstar
Resident Rockstar

How to trigger OnSave event "manually"

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 ?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: How to trigger OnSave event "manually"

What about having a button (either hidden or if possible your manual Save button) with the code you want to trigger/not duplicate and then in the OnSave code have a Select(buttonName) call that runs that code?

View solution in original post

5 REPLIES 5
Highlighted
Community Support
Community Support

Re: How to trigger OnSave event "manually"

Hi @R3dKap,

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:

https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

 

Best regards,

Kris

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Super User
Super User

Re: How to trigger OnSave event "manually"

What about having a button (either hidden or if possible your manual Save button) with the code you want to trigger/not duplicate and then in the OnSave code have a Select(buttonName) call that runs that code?

View solution in original post

Highlighted
Responsive Resident
Responsive Resident

Re: How to trigger OnSave event "manually"

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.  

Highlighted
Responsive Resident
Responsive Resident

Re: How to trigger OnSave event "manually"

@wyotimoops, didnt read your solution before posting.

Highlighted
Super User
Super User

Re: How to trigger OnSave event "manually"

@samuelJ No worries! Great minds think alike! Smiley Happy And your response was more detailed too.

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,785)