Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Field NameField TypeDescription

Label

Default Value: HubSpot Read
Example: 
Read Employee Details

String
Insert excerpt
File Writer
File Writer
nopaneltrue

Entity


Default Value:
N/A
Example: 
Company

String

Required. Select the data object to read.

Action


Default Value:
N/A
Example: 
Get all companies

String

Required. Select the read-action to perform on the entity selected above. Click  to see the list of supported actions. 

Required parameters



Use this field set to enable the Snap to perform a specific action.

Parameter


Default Value:
N/A
Example: 
company.id

String

Specify the names of the required parameters. Click  to see the list of supported parameters.

Value


Default Value: 
N/A
Example: 
company.id

Multiple

Specify the values of the required parameters. The data type of this field depends on the specified parameter.

Optional parameters

Specify the optional parameters for a specific action. Specify each parameter in a separate row.


Parameter


Default Value:
N/A
Example: 
properties

String

Specify the names of the optional parameters. Click  to see the list of supported parameters.



Value

Default Value: N/A
Example
:name

Multiple

Specify the values for optional parameters. The data type of this field depends on the specified parameter.

Filter parameters




This property enables you to filter the results from the API response based on logical operations. 

Note


Parameter


Default Value:
N/A
Example: 
email

String

Specify the system parameter $filter fields to be included in the output.

Operator


Default Value: 
Like
Example: 
contains

String

Specify the comparison operator for the system parameter $filter.

Value


Default Value:
N/A
Example: @example.com

Multiple

Enter the values of the specified input $filter fields. The data type of this field depends on the specified parameter.

Order records by




Select the order of the specified parameters. The order types to be selected are either ascending or descending.

Note

Not all parameters support sorting. Refer to HubSpot API Documentation for more information.


Parameter


Default Value:
N/A
Example: 
city

String

Enter the parameter for which to specify the order.

Value

Default Value: ASCENDING
Example: 
DESCENDING

String

Select one of the following orders in which to sort the specified parameter:

  • ASCENDING
  • DESCENDING

Advanced options

Use this section of Snap Settings to specify options to control the number of records in the output. This section comprises the following fields:

  • Output entry offset
  • Output entry limit
  • Automatic pagination

Output entry offset


Default Value: 
0
Example: 
1

Integer

Specify the number of records to skip during the read operation. Leave it empty so as not to skip any records.

Output entry limit


Default Value: 
100
Example: 
30

Integer

Select the number of records to fetch in the read operation. Leave it empty to retrieve the default number of records,

Automatic pagination


Default Value: 
Selected

Checkbox

Select this checkbox to enable the Snap to return all the records in the output. By default, the HubSpot Read Snap returns the maximum number of records per page from HubSpot based on the entity. The remaining records, if any, display in the subsequent pages.

If you deselect the Automatic pagination checkbox, the Snap returns only the records of the first page in the output.

Learn more about Usage of Automatic pagination.

Connection timeout


Default Value: 
30
Example
:30

Integer

Required. Enter the connection timeout duration of seconds.

Number of retries


Default Value: 
3
Example:
 3

Integer

Required. Enter the maximum number of re-connection attempts in case of a failure or timeout.

Retry interval (seconds)


Default Value:
N/A
Example: 
3

Integer

Required. Enter the interval in seconds between reconnections reconnection attempts.

Retry policy


Default Value: Connection errors
Example: Connection and API limit exceeded errors (429)

Dropdown list

Choose the retry policy for connection and error responses. The available options are:

  • Connection errors: Select this option when the client fails to establish a secure connection to the server.

  • Connection and API limit exceeded errors (429): Select this option when the 10-second or daily limit is exceeded.

Snap Execution


Default Value: 
Validate & Execute
Example:
 Execute only

String

Indicates how the Snap must be executed. Available options are:

  • Validate & Execute: Performs limited execution of the Snap (up to 50 records) during Pipeline validation; performs full execution of the Snap (unlimited records) during Pipeline execution.
  • Execute only: Performs full execution of the Snap during Pipeline execution; does not execute the Snap during Pipeline validation.
  • Disabled: Disables the Snap and, by extension, its downstream Snaps.

Troubleshooting

ErrorReasonResolution

Missing required parameters.

There is a required parameter that was not provided.

Verify whether all required parameters are configured.

Multiexcerpt fast include block macro
macro_uuid12044c6c-15cf-4e8a-9786-4d2b1cea6a66
nameTroubleshooting_missing_required_parameters
templateDataeJyLjgUAARUAuQ==
pageHubSpot Create
addpanelfalse

Multiexcerpt fast include block macro
macro_uuid42a2548b-43d4-4a5f-bfc9-539022c91967
nameTroubleshooting_missing_reqd_params_reason
templateDataeJyLjgUAARUAuQ==
pageHubSpot Create
addpanelfalse

Multiexcerpt fast include block macro
macro_uuid107afb38-479c-44d2-a959-c1824b24199a
nameTroubleshooting_missing_reqd_params_resolution
templateDataeJyLjgUAARUAuQ==
pageHubSpot Create
addpanelfalse

Multiexcerpt fast include block macro
macro_uuid4ed801b2-247d-400e-a4f7-b16871f7879e
nameTroubleshooting_rolling_limit
templateDataeJyLjgUAARUAuQ==
pageHubSpot Create
addpanelfalse
Multiexcerpt fast include block macro
macro_uuide3c6044f-da69-49f6-a165-e30d0f290a2a
nameTroubleshooting_rolling_limit_reason
templateDataeJyLjgUAARUAuQ==
pageHubSpot Create
addpanelfalse
Multiexcerpt fast include block macro
macro_uuid9398145a-b15c-40a1-b8d5-c8183bea5a94
nameTroubleshooting_rolling_limit_resolution
templateDataeJyLjgUAARUAuQ==
pageHubSpot Create
addpanelfalse
Multiexcerpt fast include block macro
macro_uuidfd3cb0ac-1cff-4982-ae7f-68f1c55c7708
nameTroubleshooting_daily_limit
templateDataeJyLjgUAARUAuQ==
pageHubSpot Create
addpanelfalse
Multiexcerpt fast include block macro
macro_uuid248f02ec-ad22-46da-b119-f4a2c48560e0
nameTroubleshooting_daily_limit_reason
templateDataeJyLjgUAARUAuQ==
pageHubSpot Create
addpanelfalse
Multiexcerpt fast include block macro
macro_uuid024b5a68-aab1-4e60-b0a0-c8491c8e9316
nameTroubleshooting_daily_limit_resolution
templateDataeJyLjgUAARUAuQ==
pageHubSpot Create
addpanelfalse

Additional Information

Usage of Automatic pagination

...

  • There are two different date input:

    • Milliseconds.

      • Example: Date 1420772453000. This value represents the date Fri Jan 09 2015 04:00:53 GMT+0100

    • Dates.

      • Example: Date 20150109. This value represents the date Fri Jan 09 2015 00:00:00

  • The maximum of records returned is entity-specific.

  • Some entities of HubSpot have required parameters to be used. Without which, a 404 exception is thrown by HubSpot. This exception indicates the mandatory fields required. 

Example

...

Retrieve Company Data

We want to retrieve records of the Company entity in HubSpot.  This Pipeline demonstrates how we can use the HubSpot Read Snap to accomplish this task.

...

We configure the HubSpot Read Snap to read the entity Company with the Get all companies action as shown below:

Image RemovedImage Added

A successful validation or execution of the Snap gives the following output preview, showing the query results.

Image RemovedImage Added

We format the above output as a JSON file using the JSON Formatter Snap and write the JSON Formatter Snap's output into a local file using the File Writer Snap. 

Image RemovedImage Added

To view the newly-created file, we SSH to the target directory and open the newly-created file.

...