Reprocess mechanism for failed Outbound REST Integration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2024 06:41 AM - edited 01-02-2024 07:02 AM
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,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2024 07:13 AM - edited 01-02-2024 07:14 AM
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