web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Send Exception details...
Power Apps
Unanswered

Send Exception details in email in flow

(0) ShareShare
ReportReport
Posted on by

Hi, We are using scope to handle exception in flow, Whenever request will fail, support team will get an email. But it doesn't contains details about exception. Support Team has to check flow details every time to check the exception. How can we send exception details in email.

Categories:
I have the same question (0)
  • Vijay Tailor Profile Picture
    2,961 on at

    Hi @Anonymous ,

    Find the below approach for send the Error Information using mail when flow got failed.

     

    Step 1. First Initialize the Variable like below. 

    VijayTailor_0-1602164853615.png

    Step 2. Now Filter the Error and Append the error details. and Send the Email for Error to Developer.

    VijayTailor_1-1602164983067.png

    In the above screen you can see the result(Main).

    So here Main is the Scope where all the Actions happen

    VijayTailor_2-1602165129167.png

     

    .Now we can filter the Error Details and add them into the mail.

    VijayTailor_3-1602165274340.png

     



    Send email Like Below- 

    VijayTailor_0-1602165501148.png

     

    Thanks,

    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."-Vijay

     

     

  • Community Power Platform Member Profile Picture
    on at
    Which connector you have used to filter error details. I have found only one connector "filter array" . 
  • CU24091509-0 Profile Picture
    417 on at
    Thats the correct connector you gotta use.
  • Vijay Tailor Profile Picture
    2,961 on at
    Yes, Filter array you have to use for this purpose.
  • Community Power Platform Member Profile Picture
    on at

    Using filter array you can filter existing request and send details of that request. I don't need details of request. I want to send exact exception due to which flow failed.

     

    vandana_0-1602213463333.png

     

    like here request failed due to exception column 'id' does not exist. I want to send this request in email. is it possible to send this information?

     

  • SaiKrishnaGudluru Profile Picture
    499 on at

    You can directly use Body('get_item') and read status and message from it...

  • Community Power Platform Member Profile Picture
    on at

    there is no property found with name Body('get_item').in  try block there may be more than connector like 1 for getting list item and another for inserting data. We can bind with single property in catch. we need some generic way to get exception occured in try block

  • Vijay Tailor Profile Picture
    2,961 on at

    Hi @Anonymous ,

    You can Use the Below flow Just this Flow and add all your action into the Main Scope.
    and Error Scope set the Email.
    See the below image for reference - 

    VijayTailor_0-1602220343812.png

    Thanks,

    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."-Vijay

  • Community Power Platform Member Profile Picture
    on at

    Thanks @VijayTailor 

     

    I have tried this way, but only problem is how to catch the exception. Using this solution  we can get details from existing request. how can i get exception detail?

    vandana_0-1602220999501.png

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard