Request and response message body truncated

Khanna Ji
Tera Guru

Hi All,

My request and response body is getting truncated in the log statement. I changed the field dictionary size to 4000 and also updated system property for logs but still its showing only 1000.

Even I tried to display it in alert statement getting only 1000 characters - s.getRequestBody()

Any idea how can I get request body and store it in custom table ?

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@ServiceNow User 

yes that's correct the max value is 1000

You can create custom table and custom field of larger length and directly store the value of s.getRequestBody() directly into that field

Note: custom table will have cost implication as per your ServiceNow subscription

refer below link for help as well

OUTBOUND WEB SERVICES LOGGING IN DETAIL

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

5 REPLIES 5

Willem
Giga Sage
Giga Sage

Can you check the system property "glide.outbound_http.content.max_limit":

Maximum content length for request and response message logging.

 

In my instance that is set to 100 limiting it to 100 character.

 

it still has 1000 as a max limit which is not sufficient. 

Ankur Bawiskar
Tera Patron
Tera Patron

@ServiceNow User 

yes that's correct the max value is 1000

You can create custom table and custom field of larger length and directly store the value of s.getRequestBody() directly into that field

Note: custom table will have cost implication as per your ServiceNow subscription

refer below link for help as well

OUTBOUND WEB SERVICES LOGGING IN DETAIL

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Thank you sir.