How much is max size of document you can send from Appian to external system via Integration?
Answer
The Content Type you set in the Request Body section decides the request body limit. Below table shows all the limits
Request Body Content Type | Request Body Limits |
Document (auto-detect) | If it document there no strict limit imposed by Appian. Best practice it to keep binary request bodies under 250 MB |
JSON (application/json) (if are sending data to external system as JSON) | Limit : 5 MB & 75 MB of base64 |
XML (application/xml) (if are sending data to external system as XML) | Limit : 5 MB & 75 MB of base64 |
Multipart Form Data (multipart/form-data) | Limit is 5 MB , except for documents which have no limit. For a single multipart request , keep the total size of all the documents to 250 MB or less |
Text (text/plain) | 5 MB |
Custom | 5 MB |
Conclusion: the 5 MB request body limit does not count the documents you send. Sent as binary (Document or Multipart Form Data), there is no hard limit, but Appian recommends keeping each file under 250 MB. Sent as base64 inside a JSON or XML body, all the files in one request together cannot exceed 75 MB. One 75 MB file is fine, and so are three 25 MB files, but not more than 75 MB in total.
Below the one example how can we send the document through
ContentType: "Document (auto-detect)"
Request : Appian automatically converts your document into binary
Sending document through JSON
Similarly we can send the document through Json , as shown in the image
Appian converts the document to Base64 as shown in the below image, even it exceed the 5mb appian will process it and converts the document into Base 64
For more about the integration object visit official Appian Documentation
Receiving documents from the external system
- Set Response Body Parsing to Convert binary to Appian document. The integration then streams the file into an Appian document of up to 250 MB. This option also sets Usage to Modifies data, so the integration has to be called from a saveInto, a web API or a process model.
- Base64 documents inside a JSON response share the same 75 MB limit across all files in the response.
- The rest of the response body is still limited to 5 MB. Bigger bodies cannot be processed and the integration returns an error.
- Save Document(s) In picks the folder or document management record type for the new documents, or an expression that chooses one per call. Every user who calls the integration needs at least Editor permission on it.
Reference (Appian 26.10 documentation): Integration object, size limitations and Response Body Parsing
Check yourself
Question 1 of 3, on what the answer above covers.
- 1.An integration sends a 120 MB file using the Document (auto-detect) content type. Which size guidance applies?
- 2.An integration sends three 30 MB files as base64 in one JSON request body. Which limit does this exceed?
- 3.A service returns a 100 MB binary file. Which Response Body Parsing option should the integration use to save it as an Appian document?