Can someone tell me the maximum size of the response. Setbody (body) method during the use of the rest API

ghc
Tera Contributor

Can someone tell me what is the maximum size of the body of the response.setbody (body) method during the use of the rest API

thx!

1 ACCEPTED SOLUTION

Maik Skoddow
Tera Patron
Tera Patron

Hi

you can find the answer on page https://docs.servicenow.com/bundle/tokyo-application-development/page/administer/flow-designer/refer...

"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."

Maik

View solution in original post

6 REPLIES 6

Maik Skoddow
Tera Patron
Tera Patron

Hi

you can find the answer on page https://docs.servicenow.com/bundle/tokyo-application-development/page/administer/flow-designer/refer...

"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."

Maik

Hi @ghc 

did my response answer your question? If so please mark my answer as correct, so it is closed and can point other users to the right answer.

If not, please tell me, what is missing.

Kind regards
Maik

ghc
Tera Contributor

At present, I want to call the rest API of servicenow with other external systems (not servicenow). In this case, what is the maximum size?

ghc
Tera Contributor

At present, I want to call the rest API of servicenow with other external systems (not servicenow). In this case, what is the maximum size?