Wish: Add exception message in JSON response
Status: Solved
Steps to Reproduce
I am migrating DataBridge from SOAP to web API calls. As a part of this migration, I need to change exception handling. It turns out that we receive much less details from the web API than from the WCF service.
Here is an example when I try to insert a new list item with a name that already exists.
This is the exception I get from a SOAP call:
And this is what I get with an API call:
I doubled checked with Postman, this is really all I get in the body of the response:
And the X-ErrorMessage header:
Whereas in AppInsights, you have a much more helpful message:
End-to-end transaction details - Microsoft Azure
It would be nice to have this same message included in the JSON response.
Details
| Issue id | 21478 |
| Registered | 7 Dec 2021 |
| Last modified | 9 May 2022 |
| Severity | Medium |
| Area | Sales |
| Status | Solved |
| Target release | CRM Online 10.1.2 |
| Released date | 3 May 2022 |
| Type | Bug |
Comments