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 update the details of an entity in 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: 1
  • Max: 1
  • HubSpot Read
  • Mapper
  • Copy
A document containing details identifying the entity to update along with the information to update.
Output

Document

  • Min: 0
  • Max: 1
  • JSON Formatter + File Writer
  • Mapper
  • Copy
  • HubSpot Read

A document containing details of the updated entity.

Snap Settings


Parameter NameData TypeDescriptionDefault ValueExample 
LabelString
Insert excerpt
File Writer
File Writer
nopaneltrue
HubSpot CreateCreate a Company
EntityStringRequired. Select the data object to update.AssociationCompany
ActionStringRequired. Select the update-action to perform on the entity selected above. Click Image Added to see the list of supported actions. N/AUpdate 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 reconnections attempts.010
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

Missing required parameters.

There is a required parameter that was not provided.

Verify whether all required parameters are configured.

Examples

Updating a Company in HubSpot

We want to update a company entity in the HubSpot instance. This Pipeline demonstrates how we can use the HubSpot Update Snap to accomplish this task:

Image Added

First, we use the JSON Generator Snap to create a JSON file containing the entity's updated details such as country, founded_year, and address. It is not necessary to use a JSON input, we can also use CSV (CSV Generator) and XML (XML Generator). Alternatively, we can use a File Reader Snap if we already have a file with the company's details and configure it to read the company details file. 

The screenshot below shows the output from the JSON Generator Snap:

Image Added

We map the fields from the output shown above to the corresponding fields in HubSpot using the Mapper Snap. 

Image Added

Upon execution, the JSON input file's fields are mapped to the HubSpot entity's fields as shown in the Mapper Snap's output below:

Image Added

The above output is passed to the HubSpot Update Snap. The HubSpot Update Snap is configured with the Company entity and Update a company action.

Image Added

Upon execution, the HubSpot Update Snap updates the company with the specified details as shown in the HubSpot Update Snap's output below:

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 Update 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