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 / Run flow after submitt...
Power Apps
Answered

Run flow after submitting form

(0) ShareShare
ReportReport
Posted on by 7

Hi All,

 

I created a canvas and a flow with "Send Email Notification V3", I was able to run the flow on a button to submit a form by using the following command 

 

SubmitForm(EditForm1_1); Testrun.Run(Label5, ComboBox4.Selected.SiteName)

 

But, I want to run the flow only when the form is successfully submitted.

I tried to put the run command to "OnSuccess" but it doesn't trigger the flow.

 

Thank you

Categories:
I have the same question (0)
  • Verified answer
    EddieE Profile Picture
    4,641 Moderator on at

    @arss 

    If these 

    - Label5 and ComboBox4.Selected.SiteName

    come from inside your form then you'll find that after Success they'll be Reset.

     

    To use them in your Flow add this to the form OnSuccess

    Set( vLastSubmit, EditForm1_1.LastSubmit);
    
    Testrun.Run(vLastSubmit.Label5_FieldName, vLastSubmit.ComboBox4.Selected.SiteName_FieldName)
    
    // Note: change Label5_FieldName and ComboBox4.Selected.SiteName_FieldName to the actual field names in your datasource

     

    Also, you don't need a Flow to send an email - unless there's some other reason you are using Flow? You can just add the Outlook connector. You can follow @timl Blog here to set this up.

     

  • arss Profile Picture
    7 on at

    @EddieE 

     

    Wow this really helps me and resolved the problem. I forgot that I can set a variable on this scenario. Thank you so much for your quick response and resolution! 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard