cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MetrixAdmin
New Member

Power automate still run eventhough On Success said failed

Hi, 

 

I have an issue where when the user submit the form with existing data, the power automate still run eventhough OnSuccess said invalid operation due to existing data. By right, user should not received any email due to fail submission.

 

The Powerautomate in Submit Button Onselect Property

AckRequestCallCode.Run(RequesterMailValue.Text,ProjectNameValue.Text,RequesterValue.Text,ProjectNameValue.Text,ProjectCodeValue.Text,Concat(ProjectTypeValue.SelectedItems,Value," ,"),
ProjectStartValue.SelectedDate,
ProjectEndValue.SelectedDate
);
SubmitForm(CallCodeForm)

 


Onsuccess Property

Navigate('Success Page');

 

Please help.

 

Thank you.

 

11 REPLIES 11

Hi @WarrenBelz ,

 

Thank you for your help. Understand that to be able the flow will only run when is Success, is by setup the code into OnSuccess property. I will figure out why the code is not working within OnSuccess where the code only working in OnSelect.

 

Thanks again

@MetrixAdmin ,

There is no secret formula to this - if the Form submits successfully, any valid code on the OnSuccess property of the form will run - there is nothing else to check except that the form ran (you have a Navigate function to the Success page, so if the form submits, you should navigate to that screen). If it does this, then any code before that should have run.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,627)