Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Suggested answer

PowerApp V2 Flow not kicking off on button press (only works in preview mode)

(2) ShareShare
ReportReport
Posted on by 17
Has anyone seen this before? it's driving me crazy, I can get my flows to work in preview mode, but if I try to play it from the PC or my Mobile Phone the button does nothing with no errors or history of it even running on the flow info page. I even tried to run Monitor and it shows me clicking the button with "success" but no duration or data information.
 
the only thing the button has it on is several .Run() commands as I have about 4 flows tied to the one button. just to test fuctionality I added a Navigate(page) function behind those commands and nothing... i then moved the Navigate(page) in front and it navigates but none of the Run.() flows kick off, even tried single flow and nothing.
 
I have already tried to remove the flows from the app and adding them back and re-publishing them.
 
This runs in my "default enviroment" I also added the flows and app to a solution and imported it into a dev enviroment and still the exact same issue...
 
I have two other apps that have flows attached to them (not with then .Run()) though and they work fine it seems to just be the PowerApps V2 Trigger that is broken or seems broken?

Any info would be awesome... (attached one of the flows the others are exactly the same just different names). Also attached the monitor log of it working in preview (studio) and it not working on published monitor. its ignoring the "network" commands?
 
Edit: also added a security group im in to the "run only users" and removed the flow re-added saved and published and still same craziness... still trying to figure it out...
 
9/9/2024 even removing the "condition" didn't help... Neither did recreating the flow.
Categories:
  • JK-23102019-0 Profile Picture
    4 on at
    PowerApp V2 Flow not kicking off on button press (only works in preview mode)
    I was able to get my flow working once the app was published.  Here is what worked for me.
     
    Any values you are passing to your flow, assign them to a variable and pass the variable to the flow.
     
    I was also passing values directly from the control to the flow.  Once I used a variable instead, the flow started working.
     
    A few extra tips as well:

    Whenever you make changes to the flow.  Refresh the Flow, Save the app and republish.
     
    You can also use the monitor in preview mode, that will give you more information as to why the flow isn't kicking off at all.
  • JK-23102019-0 Profile Picture
    4 on at
    PowerApp V2 Flow not kicking off on button press (only works in preview mode)
    Was this ever sorted out?  I am having the exact same issue.  App and triggered flow works just fine if I am in preview mode.  As soon as I publish it, the flows will not trigger.

    I added the Trace commands at the top and bottom of the button that calls the flow. In the Monitor, the trace commands run, but no indication on the flow running.  Seems to skip right over that line.  Flow history doesn't even show the flow triggering at all from the published app
  • SP-06091953-0 Profile Picture
    17 on at
    PowerApp V2 Flow not kicking off on button press (only works in preview mode)
    Anyone else happen to have any other suggestions? I have a ticket open with Microsoft but I’m still waiting to hear back…
  • SP-06091953-0 Profile Picture
    17 on at
    PowerApp V2 Flow not kicking off on button press (only works in preview mode)
     
    I'm saying they don't run at all... no errors no nothing. the only place it runs is in the preview mode as you can see in the "StudioConnection-Working" screenshot.
     
    I tried your Set() suggestion and that did not work either they just simply get skipped over. The only odd thing i can think of is that it might be some "security" setting as when in preview mode(studio) the category of the flow is "network" as seen in the "working" screenshot.
  • IAmIntractable Profile Picture
    245 on at
    PowerApp V2 Flow not kicking off on button press (only works in preview mode)
    Are you saying that there is no actual execution of any of the flows or that some are failing? Note, the way you have set up the calls, the app will NOT wait for each to complete. If any do not complete in 2 minutes the app will error and that might kill other calls.
     
    I recommend you use the Set command to run the flow:
     
    Set(Result1, 
        ELA.Run(
            InputStudentID.Text,
            InputMonth.Selected.Value,
            ELA_Image.Text,
            {
                file: {
                    contentBytes: UploadedImage_ELA.Image,
                    name: AddMediaButton1.FileName
                }
            }
        )
    )
     
    The App will wait for the flow to finish or two minutes to pass. You can then error check and take action on failures. One last thing to try is to refresh the flows in the app just to be sure the app see/understand the current implementation. If you update flows outside of the app, you could create a state where the metadata is wrong.
     
    If you need them to run at the same time, use concurrent().
  • SP-06091953-0 Profile Picture
    17 on at
    PowerApp V2 Flow not kicking off on button press (only works in preview mode)
    @FLMike,
     
    Tried it and it allowed the "Navigate(Page)" command at the end to actually kick off, but it bypassed all four flows on the button. Attached is the Monitor Log and a screenshot of my Button.Code From my Submit Button:
     
    Trace("Top of Button");
    ELA.Run(
    InputStudentID.Text,
    InputMonth.Selected.Value,
    ELA_Image.Text,
    {
    file: {
    contentBytes: UploadedImage_ELA.Image,
    name: AddMediaButton1.FileName
    }
    }
    );
    Math.Run(
    InputStudentID.Text,
    InputMonth.Selected.Value,
    Math_Image.Text,
    {
    file: {
    contentBytes: UploadedImage_Math.Image,
    name: AddMediaButton1_1.FileName
    }
    }
    );
    Science.Run(
    InputStudentID.Text,
    InputMonth.Selected.Value,
    Science_Image.Text,
    {
    file: {
    contentBytes: UploadedImage_Science.Image,
    name: AddMediaButton1_2.FileName
    }
    }
    );
    'SocialStudies(History)'.Run(
    InputStudentID.Text,
    InputMonth.Selected.Value,
    SocialStudies_Image.Text,
    {
    file: {
    contentBytes: UploadedImage_SocialStudies.Image,
    name: AddMediaButton1_3.FileName
    }
    }
    );
    Navigate('Thank You');
    Trace("Bottom of Button")
  • Suggested answer
    Michael E. Gernaey Profile Picture
    40,272 Super User 2025 Season 1 on at
    PowerApp V2 Flow not kicking off on button press (only works in preview mode)
    Hi
     
    Can you try this for me.
     
    At the top add a Trace("Top of Button");
     
    And the bottom
     
    Trace("Bottom of Button");
     
    see if you see them and if it causes your stuff to trigger(yes lol I have a reason)
     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard