In this article
Overview
Using this snap, you can delete 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
None.
Snap Views
Type | Format | Number of Views | Examples of Upstream and Downstream Snaps | Description |
---|---|---|---|---|
Input | Document |
|
| A document containing key/identifier of the data object(s) to delete. |
Output | Document |
|
| A document containing the entity ID(s) and the status of the delete operation |
Error | Error handling is a generic way to handle errors without losing data or failing the Snap execution. You can handle the errors that the Snap might encounter when running the Pipeline by choosing one of the following options from the When errors occur list under the Views tab:
Learn more about Error handling in Pipelines. |
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.
Field Name | Field Type | Description | |
---|---|---|---|
Label* Default Value: HubSpot Bulk Delete Example: Bulk Delete Companies | String | The name for the Snap. You can modify this to be more specific, especially if you have more than one of the same Snap in your Pipeline. | |
API Version Default Value: V3 | String/Expression | Required. Select the version of the API that you are using for the pipeline. | |
Category Default Value: N/A Example: CRM | String | Required. Select the application in which you are deleting the data objects from. | |
Entity Default Value: N/A Example: Companies | String | Required. Select the data object to be deleted. | |
Action Default Value: N/A Example: Archive a batch of companies by ID | String | Required. Select the action to be performed by the snap. Clicking the icon lists the 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 | Required. Specify the names of the required parameters. Clicking the icon lists the supported actions. | |
Value Default Value: N/A Example: company.id | Multiple | Required. Specify the values for mentioned parameters. The data type of this field depends on the specified parameter | |
Connection timeout Default Value: 30 Example: 30 | Integer | Required. A time period within which the snap should be run. | |
Number of re-tries Default Value: 0 Example: 3 | IInteger | Required. The maximum number of re-connection attempts in case of a failure or timeout. | |
Retry interval (seconds) Default Value: 0 Example: 10 | Integer | Required. The time interval between consecutive reconnection attempts. | |
Snap Execution Default Value: | Dropdown list | Select one of the following three modes in which the Snap executes:
|
Examples
Delete a batch of companies
The pipeline in this example demonstrates the use of HubSpot Bulk Delete snap to delete the batch of companies in the HubSpot portal.
In this Pipeline,
Configure the JSON Generator Snap to provide the company name as input to delete the specific companies. The screenshot below shows the output from the JSON Generator Snap:
Configure the Mapper snap to map the output details from the JSON Generator Snap to the corresponding fields in the HubSpot.
Validate 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 Delete Snap. The HubSpot Bulk Delete Snap is configured with the Company Entity and Achieve a Batch of Companies action.
Downloads
Download and import the Pipeline into SnapLogic.
Configure Snap accounts, as applicable.
Provide Pipeline parameters, as applicable.
Related Content
Endpoint Doc Link 1
Endpoint Doc Link 2