Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Capture Power Automate Workflow error and return to Power Apps.

(0) ShareShare
ReportReport
Posted on by 416


Hi

 

Background

I have a client with a custom API wired up with the Canvas app.
The custom API does some processing within Power Automate.


Requirements 

  • If custom API fails within 2 minutes, then autocancel the work workflow as cancelled or failed (due to an error)
  • Return the Workflow status ( cancelled / Failed) to the Canvas app users. 

Issue

I referred to this Blog where I am able to https://powerusers.microsoft.com/t5/Power-Automate-Community-Blog/Power-Automate-Fundamentals-10-Usage-of-workflow-Function-in/ba-p/1247789
where I can capture the workflow status in Power Automate and then send an email.

But I need to return the error to the Power Apps canvas app.  

 

Any advice would be highly appreciated.  

 

@Expiscornovus @Pstork1 @CraigStewart 

  • aaroh_bits Profile Picture
    416 on at
    Re: Capture Power Automate Workflow error and return to Power Apps.

    Thanks @Pstork1 

  • Verified answer
    Pstork1 Profile Picture
    65,890 Most Valuable Professional on at
    Re: Capture Power Automate Workflow error and return to Power Apps.

    You can only use that action to return values to an App if the flow was triggered from the app.  That was the point I was trying to make.

  • aaroh_bits Profile Picture
    416 on at
    Re: Capture Power Automate Workflow error and return to Power Apps.

    Thanks, @Pstork1  for your quick response. 

    Can use the Return data to PowerApps from a flow action at Power Automate? 

     

    Will it work in my case? 

  • Pstork1 Profile Picture
    65,890 Most Valuable Professional on at
    Re: Capture Power Automate Workflow error and return to Power Apps.

    Unless the Power Automate flow is triggered manually by the Power App there is no way to return the error message to the App.

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,522 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,890 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow