We use lots of Custom Code Actions that utilize our API. When a workflow enrolls a large number of records (either upon turning on, or after some sort of mass update), those records will all hit the API call at the same time, and the CCA will fail (and continue to retry).
The “Information” given in the action log is as follows:
There was an error making an API request in the custom code. The action will retry soon.
While we have some control in how these errors & retries are handled within the API, we cannot prevent them from happening.
It seems as if the API call limit is somewhere around 100 calls at a time, but I could be wrong.
It would be great to have more control in the workflow enrollment settings and/or within a delay step to “release” records in smaller groups, in a size of our choosing (e.g. 100 records) and at a pace of our choosing (e.g. release 100 more records every 20 minutes until complete).
This rolling record enrollment and/or delay would allow us to more precisely automate actions and avoid API call errors, although I’m sure there’s lots of other use cases where this could benefit customers:
- Pace out task or record creation to avoid overwhelming sales teams
- Pace out very large email sends (especially useful for newer customers warming up their domain who want to avoid send volume spikes)