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

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

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard