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

Notifications

Announcements

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:
I have the same question (0)
  • v-xida-msft Profile Picture
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard