AbstractProtectedapiHubSpot API version
ProtectedcrmThe CRM provider this action is designed for (e.g., 'HubSpot', 'Salesforce', etc.)
ProtectedintegrationThe integration name to look up in the Integration entity
ProtectedparamsCurrent action parameters (set by the framework)
ProtectedassociateAssociate objects in HubSpot
OptionalassociationType: stringOptionalcontextUser: UserInfoProtectedbatchProtectedbatchProtectedbuildHelper to build consistent error messages for CRM operations
OptionalsystemError: anyProtectedformatStandard date format for CRM systems (ISO 8601)
ProtectedformatFormat date for HubSpot (ISO string or milliseconds)
ProtectedformatFormat phone numbers to E.164 format if possible
ProtectedgetGets the base URL for API calls
ProtectedgetGets API credentials - first tries environment variables, then falls back to database
ProtectedgetGet HubSpot association type IDs Based on HubSpot's default association type IDs
ProtectedgetCommon CRM parameters that many actions will need
ProtectedgetGets the company integration record for the specified company and CRM
ProtectedgetGets credentials from environment variables Format: BIZAPPS_{PROVIDER}{COMPANY_ID}{CREDENTIAL_TYPE} Example: BIZAPPS_HUBSPOT_12345_API_KEY
ProtectedgetHelper to get parameter value with type safety
Protected AbstractInternalInternal method that must be implemented by derived action classes. This is where the actual action logic should be implemented.
The action execution parameters including typed context
Promise resolving to the action result
ProtectedisValidate email format
ProtectedmakeProtectedmakeProtectedmapCommon activity types mapping
ProtectedmapMap deal/opportunity stages to common statuses
ProtectedmapMap HubSpot object properties to a standard format
ProtectedparseParse date from CRM format
ProtectedparseConvert HubSpot timestamp to Date
Executes the action with the provided parameters.
The action execution parameters including context
Promise resolving to the action result
Protectedsearch
Base class for all HubSpot CRM actions. Handles HubSpot-specific authentication and API interaction patterns.