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.
Hi @vandana ,
Find the below approach for send the Error Information using mail when flow got failed.
Step 1. First Initialize the Variable like below.
Step 2. Now Filter the Error and Append the error details. and Send the Email for Error to Developer.
In the above screen you can see the result(Main).
So here Main is the Scope where all the Actions happen
.Now we can filter the Error Details and add them into the mail.
Send email Like Below-
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
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.
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?
You can directly use Body('get_item') and read status and message from it...
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
Hi @vandana ,
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 -
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
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?
User | Count |
---|---|
210 | |
94 | |
84 | |
49 | |
39 |
User | Count |
---|---|
265 | |
104 | |
104 | |
61 | |
59 |