You need to sign in to do that
Don't have an account?
IGCTO
The limit for setBody is 3 MB. Is this before or after compression?
For the HttpRequest Class, setBody has a limit of 3 MB:
set Compressed sends the data in the body in compressed format.
I would hope that the 3 MB applies to the compressed data, but this is not clear in the documentation.
Best Answer chosen by Admin (Salesforce Developers)
sfdcfox
The limit is pre-compression. This is more related to heap size (memory usage) and CPU usage (processor time) rather than bandwidth usage. Your data will consume 3MB until it is sent; setBody does not apply compression, but rather Http.Send does.