Reprocess mechanism for failed Outbound REST Integration

Obito
Tera Expert

Hi Team

 

We have snow outbound integration. Where we are sending some of incident data to the third party application. We are using oAuth 2.0 authentication. How can I reprocess the failed outbound rest calls. How I can achieve this. Please suggest. (Here failed means, Error because of oAuth/ server busy  [error code 400/500])

 

Thanks,

 

1 REPLY 1

Community Alums
Not applicable

Hi @Obito ,

 

The simple answer is: in a loop :-).

 

You can do this in your Flow, or in the script, if the logic is in a Script Include. You're going to want to wait a while after a failure and then retry, using a counter so that you only retry 4 or 5 times.

 

An OAuth failure would mean your credentials are incorrect, or no longer have access to the resource being requested, or possibly the OAuth token has expired - in that case your logic would need to request a new token / refresh token.

 

I hope this helps. Please mark as helpful, if so.

 

Thanks,

 

Jason