Showing results for 
Search instead for 
Did you mean: 
Resolver I
Resolver I

Powerapps canvas form not running flow as expected, any ideas?



I have a powerapps canvas form that collects project data from the user.  Two of the inputs are the project name and the fab number.  I have a test button

Set(flowStatus,MakeFolder2.Run(Project_Name.Text,Fab_Number.Selected.Value));Navigate(Success_screen_upload, Fade)

on the form that runs a flow which takes the project name and fab number and creates a folder (name) and subfolder (fab) in a document library, for uploading very large design files, this works fine. 


I now need to incorporate that button code into the forms OnSuccess so that the flow runs when the form is submitted and that is where I have run into wall. 


When the form is submitted it goes over to a successful submission screen and there is a button that brings the user to the folder/subfolder location for uploading, the button's DisplayMode is set to edit when the flow sends a response back that it is done building the folder structure, I did not want a user directed to a nonexistent folder.  This works fine too.  


The problem is that the flow runs fine when I use the test button in the form, but the flow will not run when I move the flow execution code to the OnSuccess.  There is no error I can just see the flow did not get executed.


So I tried to move the flow execution code to the OnVisible of the success screen, still did not run.  Ok, I thought, maybe the text inputs from the form are not visible when it goes to the success screen, so I tried to port the variables with the Navigate command in the OnSuccess, keeping the flow execution on the OnVisible of the success screen:

(ResetForm(Self); Navigate(Success_screen_upload, Fade,{projectName: Project_Name.Text, projectFab: Fab_Number.Selected.Value} ) 

The OnVisible  code is:



Nope that did not work either.  Ok, I will try and pass the variables by using set command in the OnSuccess:

set(projectName,Project_Name.Text); set(projectFab,Fab_Number.Selected.Value); ResetForm(Self); Navigate(Success_screen_upload, Fade)

With the same OnVisible code from above. 

Still no luck, any ideas?


Thanks in advance for any help,



Accepted Solutions

I moved the set variable functions to the submit button OnSelect instead of the OnSuccess and that seemed to work.

View solution in original post

Advocate II
Advocate II

What I find works is using variables using the PowerAutomate Function in the Action Menu. 



I also make sure that I AskPowerApps for the Variable in the Flow.



Also when Editing the Flow I go to Edit Button from the OnSelect property as seen here






Thank you, but this is not my problem.  The flow works fine, and I pass variables from my Powerapp to my flow and back just fine. 

I believe this has to do with passing variables between my canvas form and another screen.

I moved the set variable functions to the submit button OnSelect instead of the OnSuccess and that seemed to work.

View solution in original post

Helpful resources

PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!


Are Your Ready?

Test your skills now with the Cloud Skill Challenge.


Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (71,531)