Hi all,
I’m creating a HubSpot CRM Export API in Alteryx. I’m running into an issue where it can’t find the modules and classes associated with the CRM. When I looked at the hubspot package it installed, there was not an exports subfolder present in the CRM folder.
Below are the two code snippets I’ve tried with the error messages it produced.
from ayx import Package
from ayx import Alteryx
Alteryx.installPackages(package=[‘hubspot’,‘hubspot-api-client’], install_type=“install --user”)
import hubspot
from pprint import pprint
from hubspot.crm import PublicExportRequest, ApiException
ImportError: cannot import name 'PublicExportRequest' from 'hubspot.crm' (C:\Users\user\AppData\Roaming\Python\Python38\site-packages\hubspot\crm\__init__.py)
from ayx import Package
from ayx import Alteryx
Alteryx.installPackages(package=[‘hubspot’,‘hubspot-api-client’], install_type=“install --user”)
import hubspot
from pprint import pprint
from hubspot.crm.exports.export.async import PublicExportRequest, ApiException
File "<ipython-input-1-d51b27589af1>", line 9
from hubspot.crm.exports.export.async import PublicExportRequest, ApiException
^
SyntaxError: invalid syntax
Look forward to hearing your solutions on this!