web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to trigger OnSave ...
Power Apps
Answered

How to trigger OnSave event "manually"

(0) ShareShare
ReportReport
Posted on by 1,594

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 ?

Categories:
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    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

     

  • Verified answer
    wyotim Profile Picture
    2,545 on at
    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?
  • SJ-15052312-0 Profile Picture
    418 on at

    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.  

  • SJ-15052312-0 Profile Picture
    418 on at

    @wyotimoops, didnt read your solution before posting.

  • wyotim Profile Picture
    2,545 on at

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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard