Hoping someone can give me some insight please 🙏
I'm relatively new to Hubspot workflows and right now have a workflow triggering on Deal close to carry out some tasks. As a part of this I have a Python custom code step which calls on the Hubspot API multiple times, the calls look similar to this:
response1 = requests.get(f"https://api.hubapi.com/crm/v3/objects/deals/{old_deal}/associations/line_item",headers=headers)
associations = response1.json().get('results',[])
Occasionally we are closing deals in large numbers which results huge numbers of enrollments all at once and subsequent failed workflow attempts - I think we are hitting the limit of the API.
Is there an established way to handle API calls to ensure each enrollment is actually able to be processed? I thought Hubspot may be able to handle failures itself but it seems like it's something I'd need to code in - a bit unfamiliar!