what is the maximum size of the response. Setbody (body) method during the use of the rest API?
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
08-17-2022 06:49 PM
At present, I want to call the rest API of servicenow with other external systems (not servicenow).Can someone tell me the maximum size of the response. Setbody (body) method during the use of the rest API ?

- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
08-17-2022 07:05 PM
HI ghc,
This seems to depend on the glide.rest.max_content_length
property which is defaulted at 10MB, min is 1MB, max is 25MB on the target instance.
By default, the system limits the size of REST responses that are not saved as attachments to 5 MB. Direct REST responses that exceed this limit generate an error. To support larger response sizes, either save the response as an attachment or increase the response size limit with the glide.pf.rest.response_payload_max_size system property. This system property supports a maximum value of 10 MB.
Also, The link referred to: https://community.servicenow.com/community?id=community_question&sys_id=31841425db2dbfc0d82ffb243996...
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep