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 / Capture The Flow Trigg...
Power Apps
Answered

Capture The Flow Trigger Failure

(0) ShareShare
ReportReport
Posted on by 640

Hello All,

 

I have a Flow set up on the button. And I'm trying to display an error message if Flow fails to get triggered. Is there any way we can achieve this? 

 

Thanks,

Omi

Categories:
  • Gochix Profile Picture
    1,937 Moderator on at

    Hi @omi18 ,

    you can add an action - respond to powerapps in your flow and then use the If condition to validate the respond action. 

    see a solution here:

    https://powerusers.microsoft.com/t5/Building-Power-Apps/quot-Success-quot-Message-after-a-flow-run/td-p/835603 
    _____________________________________________________________________________________
    Please give a thumbs up if I resolved your issue! Please click Accept as Solution to close the topic!

  • omi18 Profile Picture
    640 on at

    Hi @Gochix ,

     

    Thank you for your reply. But I want to capture errors before flow runs. i.e., flow throws an error before it triggers.

     

    Best,

    Omi 

  • Gochix Profile Picture
    1,937 Moderator on at

    I’m not sure if you can do this. you could try to collect a new collection like ClearCollect(flowcol,YourFlow.Run())

    and then see if the values are in collection. Then you could use that data to check if in collection is data then run flow if not then diplay error message. Not sure if this will work as when collecting a collection your flow would trigger anyway. So no idea if there is a work around for this

     


    _____________________________________________________________________________________
    Please give a thumbs up if I resolved your issue! Please click Accept as Solution to close the topic!

  • omi18 Profile Picture
    640 on at

    Hi @Gochix ,

     

    Yeah, I did try this but didn’t work. 

     

    Thanks,

    Omi

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @omi18 ,

     

    If a flow failed to be fired, there must be some "reason", which you can use to notify the user within an If statement:

    If(
     IsBalnk(TextInput2.Text),
     Notify("Value1 is required"),
     IsBalnk(TextInput2.Text),
     Notify("Value2 is required"),
     IsBalnk(TextInput3.Text),
     Notify("Value3 is required"),
     Flow.Run()
    )

     

    Best regards,

  • Verified answer
    victorcp Profile Picture
    2,350 Moderator on at

    Hi Omi,

    On settings you can enable error handling and use IfError function to test if the trigger is working or not.

    victorcp_0-1662026778935.png

    IfError(<flow>.Run(), Notify(<error message>,NotificationType.Error))

     

  • omi18 Profile Picture
    640 on at

    Hi @victorcp ,

     

    Thanks for the reply. This works. 

     

    Best,

    Omi

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard