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.

Monitoring outbound rest API calls

Rakesh Giri
Tera Contributor

Looking for some solution to proactively check rest api outbound queue for failures. Tried it with BR and flow but seems like we cant put a check on outbound rest api queue. Any help would be approiciated.

1 REPLY 1

Robert H
Mega Sage

Hello @Rakesh Giri ,

 

What particular kind of failure are you trying to detect? And what exactly have you tried in your Business Rule? I assume it's running on the "ecc_queue" table, with a condition that includes "Topic=RESTProbe"?

 

Different types of failures have different symptoms.

 

For example, if the endpoint host cannot be resolved or the resource is not found there would be an "error" attribute on the results and result elements in the XML payload of the record in the "input" queue.

RobertH_0-1744479063771.png

 

Or if there is an issue with the MID server then there would not be an "input" record, and instead the "output" record would remain in the "ready" state. Such an issue would need to be detected through a scheduled job that checks for such "output" records that are still in this state after X minutes, for example.

RobertH_1-1744479176677.png

Regards,

Robert