I’m looking to create tasks in a coded action and am running into TypeErrors even though everything seems to match the API documentation. Anyone know what I’m doing wrong?
NOTE: I’m aware that there’s already a workflow action to create tasks, I need to go beyond what’s possible with that action, but can’t even get it to create a simple task to begin with.
Current action code:
Error:
TypeError: Cannot read properties of undefined (reading 'basicApi')
at Object.exports.main (/var/task/file.js:22:61)
at Runtime.exports.hubspot_handler [as handler] (/var/task/hubspotHandler.js:6:21)
at Runtime.handleOnceNonStreaming (file:///var/runtime/index.mjs:1089:29)
My code’s based off the documentation here: https://developers.hubspot.com/docs/api/crm/tasks
