Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Notification on Outbound HTTP logs - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Notification on Outbound HTTP logs
KB0832851

Notification on Outbound HTTP logs


1005 Views Last updated : Jan 3, 2025 public Copy Permalink
KB Summary by Now Assist

Summary

It is not possible to create an Email Notification on creation of Outbound HTTP logs


In the backend code "setRunEngines(false)" is set on the sys_outbound_http_log class.


What this means is that things like business rules and notifications will not be evaluated on this table.

Due to performance and security reasons, we do not want business rules/notifications running on sys_outbound_http_log that are triggered through rest/soap messages

Instructions

Possible work arounds:




1) As a work around you can send a notification manually after the outbound web service script based on a specific response code:


For example:


******************************



var restMessage = new sn_ws.RESTMessageV2();

restMessage.setBasicAuth('<username>', '<password>');

restMessage.setHttpMethod("post");

restMessage.setEndpoint("https://<instance>.service-now.com/api/now/table/incident");

restMessage.setRequestBody("{\"short_description\" : \"Test incident from Recordless RESTMessageV2 \",\"caller_id\" : \"Abel Tuter\"}");


var response = restMessage.execute();

var httpStatus = response.getStatusCode();

gs.log(httpStatus);



if(httpStatus=='201'){

var mail = new GlideEmailOutbound();

mail.setFrom('<instance>@service-now.com');

mail.addRecipient('<from>@<address>');

mail.setSubject('status code 201');

mail.setBody('status code 201');

mail.save();

}



******************************


PS: This code is a customized code and a possible work around . Customization is beyond the scope of support .




2)  schedule job to query periodically this table and do the needful ( create event etc )


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.