When designing custom code interactions with the hubspot API, I chose to use the hubspot-api-client for consistency.
I had multiple custom coded functions break because of an update in this package, where the naming convention of batch inserts changed from BatchInputSimplePublicObjectInputForCreate to BatchInputSimplePublicObjectBatchInputForCreate.
Even after discovering this issue, I am still noticing inconsistencies, where sometimes it seems to change between custom coded actions.
In my example, when I try to import and run the coded action locally, I get the message “BatchInputSimplePublicInputForCreate is unknown import symbol” and the code runs with an error.
It works when I change it to BatchInputSimplePublicBatchInputForCreate, but now I get the error in the coded action:
ERROR] Runtime.ImportModuleError: Unable to import module ‘hubspotHandler’: cannot import name ‘BatchInputSimplePublicObjectBatchInputForCreate’
This suggests the coded action has a different version of the hubspot-api-client package then I have locally. I am running 12.0.0.
Aside from this inconvenience, the biggest problem is inconsistency between custom coded actions. I have some custom coded actions running on BatchInputSimplePublicObjectInputForCreate and some on BatchInputSimplePublicObjectBatchInputForCreate, and all these functions would break if I would swap it around. I have the feeling my custom coded action running on the old spec (BatchInputSimplePublicObjectInputForCreate) could break anytime due to some slow roll-out of new package version.
