Need help in retry the integration if it fails flow designer

Debasis Pati
Kilo Sage

Hello Everyone,
I have a flow on incident and it is integrated with a thirdparty tool and its aoutbound.
I have created one custom action used and everything is fine i am able to create the incident in the thirdparty system.
Now we have a requirement like if the integration fails due to any error. It should try the same rest call two more time if still error then it should create one incident .Now please look at the attached scrrenshots and let me know how i can do this?
custom action.pngFLow1.png
In my custom action where after rest step whatever response i am getting i am parsing it in the json parser and then getting the values and updating the incident.
the current requirement is about the negative scenarion if integration fails then it should try two more times if still fails then i have to log one incident record with the eroor and the incident details so the admin team can check.

@Ankur Bawiskar how i should be able to achieve this?

3 REPLIES 3

Ankur Bawiskar
Tera Patron

@Debasis Pati 

did you try Retry policy?

Retry policy 

also check below

How to Create a Retry Policy

Handling ServiceNow flow errors with a flow 

Using Error Handler 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Hello @Ankur Bawiskar ,
Irrespective of the error i have to try the integration for 3 times so i have created the below policy and using it in the custom action is it correct condition.

DebasisPati_0-1778147589419.png

 

@Debasis Pati 

I haven't tried but it should work based on the links I shared

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader