Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Rest Message logging when calling to the endpoint successfully ?

sieusaopolo15
Giga Sage

Is there any table which stores API calling requests from sn_ws.RestMessageV2 used in scripts ? I'm using gs.log to log data when API is success or failed but it doesn't clear and hard to keep track for each log in sys_log table when there are many scripts using this function. I wanted to know this because I want to make a report related to APIs which are called by sn_ws.RestMessageV2 in code side failed in 1 week or success in 1 week.

1 ACCEPTED SOLUTION

Ravi Chandra_K
Kilo Patron
Kilo Patron

Hello @sieusaopolo15 

Have you tried Outbound HTTP Logs . you have to set the log levels in the system properties for that.

 

Please find the detailed support doc here:

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0659194

Please mark the answer as helpful and correct if helped.

Kind regards,

Ravi Chandra 

View solution in original post

2 REPLIES 2

Ravi Chandra_K
Kilo Patron
Kilo Patron

Hello @sieusaopolo15 

Have you tried Outbound HTTP Logs . you have to set the log levels in the system properties for that.

 

Please find the detailed support doc here:

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0659194

Please mark the answer as helpful and correct if helped.

Kind regards,

Ravi Chandra 

Hi @Ravi Chandra_K ,

This is just what I needed, thanks