Hello,
I'm calling a Google Gmail API to get the attachments of an email, with an Integration. The attachment comes in a form of a base64 document inside the body:
"body": { "size": 1111, "data": "base64_document_here" }
I tried to get an attachment with 12KB (around 12k characters) and it works great...
until I use the "Convert base64 values to Appian documents" checkbox:
I've also tried to get a smaller attachment and it seems to be working just fine:
I think it may have to do with Appian trying to convert the JSON into a CDT first, which looks like it's limiting the size to 4000 characters, and then decoding the base64, but I'm not sure.
Has anyone ever had this problem before?
Discussion posts and replies are publicly visible
A single integration call can handle up to 75mb of documents: https://docs.appian.com/suite/help/23.4/Integration_Object.html#limits
What does the response body look like for the first screenshot, where you are getting the 12k document without the checkbox checked? Or similarly, if you use an external tool such as Postman
Hello Steve, thanks for you answer.
Below I'll put a screenshot of the response of the 16k (it's not 12k, my mistake from the original post) document without the checkbox:
.
Not sure if this matters, but if I ask to return the raw response body:
The body structure looks right. When converting to Appian value, base64 strings are only truncated to 4,000 characters if they are not mapped in the configuration grid, which you had correctly. Any more details arise from further tests, the logs, or the http request/reponse logs?