A component that connects to HubSpot API
Name | Mandatory | Description | Values |
---|---|---|---|
REQUEST_MAX_RETRY |
false | The number of retries to HubSpot API the platform should do on errors (3 by default) | any integer above 0 |
RENEW_LIMIT |
false | Set biggest number of records in Get New and Updated Objects trigger before set new start date, 9800 by default |
any integer above 0 and less 10000 |
Authentication occurs via OAuth 2.0. To make OAuth work, you need to create a new OAuth2 App in your HubSpot or use an existing OAuth2 Client during the credentials creation process.
crm.objects.contacts.read, crm.objects.contacts.write, crm.schemas.contacts.read, crm.schemas.contacts.write, crm.objects.owners.read
To complete the process:
Fetch page
: An object with key results that has an array as its value.Emit Individually
: Each object fill the entire message.After reaching 9800 records flow will find largest Field to poll
in last Polling Page and use it as Start Time
for next iterations, results with this date will be excluded from that iteration and include in the next one.
This trigger is deprecated. Please use HubSpot Webhook component instead.
Receive data from HubSpot based on configured webhooks.
Client secret - Provide Client secret from HubSpot application here otherwise you will get an error during the webhook requests in case of incorrect or missing value.
Triggered object from HubSpot.
Action to call any Hubspot API endpoint.
Throw Error on 404 Response - (optional) Treat 404 HTTP responses as errors, defaults to false
.
https://api.hubapi.com
), required.GET
, POST
, PUT
, PATCH
, DELETE
, required. HTTP verb to use in the request.Action to make upsert (update/create) object in HubSpot.
Companies
, Contacts
, Deals
, Line Items
or Tickets
.Object Type
in the Contacts.Dynamically generated.
For each custom file field, an object is generated to upload the custom file to populate that field. That object includes the following:
We use Files API for file uploading.
Please, don’t use platform attachments url (like http://steward-service.platform.svc.cluster.local:8200/v2/objects/xxxxx
) for fields Attachment URL
. The component will throw an exception process.uncaughtException
.
Action to lookup object in HubSpot. Lookup Set will make sure all the items in the set should be there, otherwise throw an error.
Companies
, Contacts
, Deals
, Line Items
or Tickets
.Object Type
in the Contacts.file
field typeAn array where each item is an ID.
Action designed to lookup one object by unique field.
{}
, otherwise system will through an error in case of zero results.file
field type.ID value Text field: value for ID to Search On
(unique field value by itself).
Action to lookup objects in HubSpot.
Fetch all
, Fetch page
, Emit individually
, required.file
field type.Search Criteria Array: Combine each search term with an AND
operator.
Please note: HubSpot support up to three criteria
Example:
Records created after 2021-10-01T03:30:17.883Z
with property firstname
containing Tony
.
["createdate GT 1633059017883", "firstname CONTAINS_TOKEN Tony"]
Supported operators:
OPERATOR | DESCRIPTION |
---|---|
EQ |
equal to |
NEQ |
not equal to |
LT |
less than |
LTE |
less than or equal to |
GT |
greater than |
GTE |
greater than or equal to |
HAS_PROPERTY |
has property value |
NOT_HAS_PROPERTY |
does not have property value |
CONTAINS_TOKEN |
contains token |
NOT_CONTAINS_TOKEN |
does not contain token |
If selected Fetch page
additional metadata fields:
Order example:
'createdate DESCENDING'
Fetch page
: An object with:
results
that has an array as its value.*totalCountOfMatchingResults
containing the total number of results (not just on the page) matching the search criteria.Fetch All
: An object, with key *results
that has an array as its value.Emit Individually
: Each object fill the entire message.Please note: We do not retrieve objects to associate dynamically. Check the HubSpot documentation to verify that the association between selected objects is possible.
Object with statusCode
key that represent result of request.
Please note: We do not retrieve objects to associate dynamically. Check the HubSpot documentation to verify that the association between selected objects is possible.
Object with statusCode
key that represent result of request.
Action designed to delete one object by unique field.
ID value text field: value for ID to Search On
(unique field value by itself).
The expected output is an object with a id
property. id
value stands for id of delete object.
Upsert Object Action
-> any type of Lookup Object(s) Action
with enabled feature Enable download attachments
. Uploading the file to HubSpot on Upsert Object Action
takes some time, your might get 404
error on lookup.