Versions Compared

Key

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

In this article

Table of Contents
maxLevel2
absoluteUrltrue

Overview

Use this Snap to delete entities from the HubSpot instance. 

Image Added

Prerequisites

None.

Support for Ultra Pipelines

Works in Ultra Pipelines

Limitations

None.

Known Issues

None.

Snap Input and Output


Input/OutputType of ViewNumber of ViewsExamples of Upstream and Downstream SnapsDescription
Input 

Document

  • Min: 0
  • Max: 1
  • HubSpot Read
  • Mapper
  • Copy
A document containing key/identifier of the data object to delete.
Output

Document

  • Min: 0
  • Max: 1
  • Mapper
  • Copy
  • Email Sender
A document containing the entity ID and the status of the delete operation.

Snap Settings


Parameter NameData TypeDescriptionDefault ValueExample 
LabelString
Insert excerpt
File Writer
File Writer
nopaneltrue
HubSpot CreateCreate a Company
EntityStringRequired. Select the data object to delete.AssociationCompany
ActionStringRequired. Select the delete-action to perform on the entity selected above. Click Image Added to see the list of supported actions. N/ADelete a company
Required parameter

Specify the required fields for a specific action. Specify each parameter in a separate row. Click Image Added to add a new row.

This fieldset consists of the following fields: 

  • Parameter
  • Value

Parameter

StringSpecify the names of the required parameters. Click Image Added to see the list of supported parameters.N/A

table_id

ValueMultipleSpecify the values of the required parameters. The data type of this field depends on the specified parameter.N/A

123561234

Connection timeoutIntegerRequired. Enter the connection timeout duration of seconds.3030
Number of retriesIntegerRequired. Enter the maximum number of re-connection attempts in case of a failure or timeout.03
Retry interval (seconds)IntegerRequired. Enter the interval in seconds between reconnection attempts.010

Retry policy



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.

Connection errorsConnection and API limit exceeded errors (429)
Snap ExecutionString

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.

Execute onlyValidate & Execute

Troubleshooting

ErrorReasonResolution

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


Examples

Delete a Company from HubSpot

We want to delete a company from the HubSpot instance. This Pipeline demonstrates how we can use the HubSpot Delete Snap to accomplish this task:

Image Added

Note

We do not need any Snap other than the HubSpot Delete Snap to delete an entity. However, we want to write the delete confirmation output by the HubSpot Delete Snap into a local JSON file. That is why we use the JSON Formatter and File Writer Snap in this example. If there are multiple entities to delete, we can pass the entities' identifier through upstream Snaps or as a Pipeline parameter. In that case, we can add Snaps such as Mapper, File Reader, or Copy, upstream of the HubSpot Delete Snap.

We configure the HubSpot Delete Snap with the Company entity and Delete a company action. We also provide the entity's identifier (company_id) as a required parameter.

Image Added

Upon execution, the HubSpot Delete Snap deletes the specified entity and outputs a confirmation of the same.

Image Added

Since we want to write this output into a local file for record-keeping, we use a combination of the JSON Formatter and File Writer Snaps downstream of the HubSpot Delete Snap.  The screenshot below shows the configuration of the File Writer Snap:

Image Added

Download this pipeline.

Downloads

Note
titleImportant steps to successfully reuse Pipelines
  1. Download and import the Pipeline into SnapLogic.
  2. Configure Snap accounts as applicable.
  3. Provide Pipeline parameters as applicable.

Attachments
patterns*.slp, *.zip


Insert excerpt
HubSpot Snap Pack
HubSpot Snap Pack
nopaneltrue

...

See Also