- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-26-2020 09:24 AM
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 ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2020 09:03 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-26-2020 10:10 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-26-2020 10:15 PM
it still has 1000 as a max limit which is not sufficient.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2020 09:03 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-28-2020 12:15 AM
Thank you sir.