The Zurich release has arrived! Interested in new features and functionalities? Click here for more

How to retrigger failed API call?

Suggy
Giga Sage

We are using flows and making REST API calls for eBonding Change request.

At times API fails due to some reasons.

Say due to some network issue for 5 mins, API calls did not happen. 

 

Multiple updates like state change, work notes, etc happened in source instance and these updates are missed in the target instance.

 

Once network issue is fixed, how can I retrigger those missed updates?

 

 

5 REPLIES 5

Najmuddin Mohd
Mega Sage

Hello @Suggy ,

You can implement a fail - safe mechanism to implement this approach.

Something like below,


Declare a variable Success = false;

Trigger the API,

IF API is Successful, 

 change the variable Success = true
Else,
   Wait for a duration of 5 Min.

Do the above in a While loop, till Success = true.


If the above information helps you, Kindly mark it as Helpful and Accept the solution.
Regards,
Najmuddin.