Convert binary to Appian document

Certified Senior Developer

I have an integration which returns the document in binary format and I can convert that to Appian document using the option to Convert Binary response to Appian document.

But this API returns JSON body as below while returning error. I want to extract this error details and present it to the users but the integration object is returning null response body when I select the option "Convert Binary response to Appian document" even though API is returning below body.

Is there any way to extract this body when API returns error and convert the binary to Appian document in case of successful response ?

API Response as JSON body:

{"type":"about:blank","title":"Bad Request","status":400,"detail":"Failed to read request","instance":"/api/v1/"}

Integration Response:

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data