Skip to main content

Posts

Showing posts with the label REST

Override outbound http log settings

 Override outbound http log settings https://www.servicenow.com/docs/bundle/xanadu-api-reference/page/integrate/outbound-web-services/concept/outbound-logging-configure.html To configure the log level for a REST method or SOAP message function, navigate to the record you want to configure and click the  Set log level  related link, then select a log level for the current record. To modify the log level for multiple outbound requests, navigate to  System Web Services  >  HTTP Log Levels  and change the log levels using the list. All outbound requests that have been configured with a specific log level are listed. You can override the log level for all outbound requests using the properties  glide.outbound_http_log.override  and  glide.outbound_http_log.override.level . Use these properties only for a limited time when troubleshooting.

Scripted REST API Examples

 Scripted REST API Examples  POST example 1:   ( function process ( /*RESTAPIRequest*/ request , /*RESTAPIResponse*/ response ) {         // implement resource here     //-- see:     //--    https://docs.servicenow.com/bundle/geneva-servicenow-platform/page/app-store/dev_portal/API_reference/ScriptableServiceRequestBody/reference/r_SSRB_data.html     //var queryParams = request.queryParams;     //var pathParams = request.pathParams;     //gs.log('PATH params: ' + path;     //gs.log('PATH param2: ' + path.description, 'wsRESTtest')         var Reqbody = request . body ;     //var test_resp = pathParams.RequestDetailsJson;     var sName = '' ;     var sID = '' ;     var arrYesNo = false ;     var requ...