The CreatorCon Call for Content is officially open! Get started here.

where can I find the REST API response for a transaction log entry?

snow2p
Tera Expert

Hi, 

I'm testing an intergration that queries the incident table to find the number of incidents that fit a certain criteria (actually returns a list of incidents, but I'm tracking the list size for the purpose of this question). While nothing changed in my code and nothing appears to have changed in the incident table, the results of the query appear to have changed suddenly after a certain time. I would like to see the response to my request and cannot seem to find it. The transaction log is below with the actual transaction below that. Any ideas how I can find out what changed so that may servicenow tenant changed it's response? I was hoping to see it in the API response, but if it's not available, I'm open to looking elsewhere to figure this out.

snow2p_0-1758657227317.png

looked at the actual entries, I cannot find the API response (the request is visible)

snow2p_2-1758657523931.png

 

 

7 REPLIES 7

Following Kaushal's initial direction, I found the properties that should have allowed me to modify logging levels (below). Unfortunately, after making this change and sending in an HTTP request that successfully executed (incident table updated and response code 200), the log still did not appear in the Outbound HTTP Logs.

snow2p_0-1758743972734.png

 

Hi @snow2p 

As I mentioned in my earlier response, the Outbound HTTP logs will be generated only for outbound transactions (Transactions initiated by ServiceNow in other system/appl.). the outbound log properties that you enabled doesn't apply for your scenario (inbound transactions).

 

Are you saying that there is no way to log REST API responses when my integration does a GET on the incident table? I'm simply trying to solve my problem that requires me to look at inconsistent behaviour that can so far only be detected after the fact by reviewing logs or observing spurious behaviour as a result of my servicenow suddenly sending different data for the same query when nothing changed in the incident table. Can you help solve that? or is it simply not possible to log the responses to inbound API calls?