In this article
Overview
You can use this Snap to create bulk data objects in the HubSpot portal. For more information about HubSpot APIs, see HubSpot Documentation.
Prerequisites
None.
Support for Ultra Pipelines
Works in Ultra Pipelines.
Known Issues and Limitations
Records only up to 100 can be created in a single run.
Snap Views
Format | Type | Number of Views | Examples of Upstream and Downstream Snaps | Description |
Input | Document | Min: 1 Max: 1 |
| A document containing details of the data object(s) to create. |
Output | Document | Min: 0 Max: 1 |
| A document containing the details of the new object(s) including the entity IDs. |
Snap Settings
Asterisk ( * ): Indicates a mandatory field.
Suggestion icon (): Indicates a list that is dynamically populated based on the configuration.
Expression icon ( ): Indicates the value is an expression (if enabled) or a static value (if disabled). Learn more about Using Expressions in SnapLogic.
Add icon ( ): Indicates that you can add fields in the fieldset.
Remove icon ( ): Indicates that you can remove fields from the fieldset.
Upload icon ( ): Indicates that you can upload files.
Feild Name | Feild Type | Description | |
Label* Default Value: HubSpot Bulk Create | String | Specify a name for the Snap. If you have more than one of the same snaps in the pipeline, you can modify this and create a unique name. | |
API Version* Default Value: V3 | Dropdown list | Select the version of the API that you are using for the pipeline. Available options include:
| |
Category* Default Value: N/A | String | Select the application in which you are creating the data object. | |
Entity* Default Value: N/A | String | Select the data object to be created. | |
Action* Default Value: N/A | String | Select the action to be performed by the snap. Clicking the icon lists the supported actions. | |
Required Parameters | Use this fieldset to enable the Snap to perform a specific action. | ||
Parameter* Default Value: N/A | String | Specify the names of the required parameters. Clicking the icon lists the supported actions. | |
Value* Default Value: N/A | Multiple | Specify the values for mentioned parameters. The data type of this field depends on the specified parameter. | |
Connection Timeout^ Default Value: 30 | Integer | Specify the time period within which the snap should be run. | |
Number of re-tries* Default Value: 0 | Integer | Specify the maximum number of re-connection attempts in case of a failure or timeout. | |
Retry Interval* Default Value: 0 | Integer | Specify the time interval between consecutive reconnection attempts. | |
Snap Execution Default Value: Execute only | String | Select one of the following three modes in which the Snap executes:
|
Examples
Creating a Batch of Companies
This example pipeline demonstrates the use of HubSpot Bulk Create Snap to create the batch of companies in the HubSpot portal.
Configure the JSON Generator Snap is used to create a JSON file containing the new company details such as name, address of the company, website, etc. Alternatively, you can use a CSV (CSV Generator), or XML (XML Generator). Also, if you already have a file with the company details, a File Reader Snap can be used and configured to read the company details.
Below screenshot shows the output from the JSON generator Snap: Next, a Mapper snap is used to map the output details from JSON generator snap to the corresponding fields in the HubSpot.
On running the Mapper snap, the JSON input fields are mapped to the HubSpot entity's fields as shown in the Mapper snap's output below:
Finally, the output from the Mapper snap is passed on to the HubSpot Bulk Create snap. The HubSpot Bulk Create Snap is configured with the Company Entity and Create a Batch of Companies action.
On running the HubSpot Bulk Create snap, it creates a batch of companies with the mentioned details as shown in the screenshot below.
Download this pipeline.
Downloads
Download and import the pipeline into SnapLogic.
Configure Snap accounts, as applicable.
Provide pipeline parameters, as applicable.