About this SnippetCopy
Please note: this only works with 3rd party services, NOT native Tray.io connectors - this is because manual error handling ONLY works when connecting to a 3rd party service. (as of 2023oct27)
This snippet shows you an example of the architecture you would apply to a step in order to design retry logic for a specific 3rd party API call. We use this internally for our Salesforce Update Campaign Membership callable workflow utility.
A lot of the logic for this snippet is within the manual error handling of the step that we are attempting and building this retry around so you can use this as a visual and copy some of these steps into your workflow, but you will need to rebuild and configure the steps to meet your needs.
The basic logic is:
Attempt the action
Break the loop
Determine the error
Check if we hit max attempts yet
Delay and try again OR if we hit the max break the loop