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.

How to retry REST messages when there is an error?

stevewilson
Kilo Contributor

We are currently integrating with a customer's ticketing system and are trying to figure out how to automatically resend a REST message if there is an error.

For example if the server is down, is there a way to queue up the REST messages and retry them at another time or at a set interval (retry every 5 minutes until successful).

I know this is possible with SOAP but I am not seeing anything for REST.

1 ACCEPTED SOLUTION

Hi Steve,



Here is a screenshot of the actual policy that I made. The key would be to set the agent to RESTClient and build an appropriate condition for your need.


find_real_file.png



Please mark responses helpful and/or answered if you find them so. We work for points here


View solution in original post

8 REPLIES 8

Hi Steve ,


we are doing an integration between HP OMi and ServiceNow with the help of Do IT Wise adaptor. Does retry policies execute without using MID Server ?


Sarva,



We are not using a MID server with our ServiceNow instance and we have used the REST retry policies. They work the same as ECC Queue retry policies.




ECC Queue Retry Policy - ServiceNow Wiki



An example we are using is below. It will retry every 3 mins for a max of 10 retries.



find_real_file.png


Thank you. Its the same I believe.


ash1xh
Tera Contributor

Just to add to the solution provided, struggled a bit to find the plugin - the plugin is not enabled by default. Need to raise a request to enable the plugin. 
Refer: KB - Plugin Required to activate the ECC Queue Retry Policy 

 

ashishgupta03_1-1686013435896.png