Use multiple HubSpot records in a Oneflow contract

Dineth Kurukularatchi
Dineth Kurukularatchi
  • Updated

START WITH TWO-WAY SYNC

Read Two-way sync (HubSpot) first to learn how to match a HubSpot property to a Oneflow data field. 

The mapping tells Oneflow which HubSpot properties to copy when you create a contract and whether future changes sync one way or both ways.

This guide shows how to use that same mapping to pull data from multiple linked HubSpot records into one contract.

Suppose you are creating a Oneflow contract from a HubSpot deal. Two companies are linked to the deal; Company 1 and Company 2. You want a workflow where both companies' details (i.e. names and addresses) are automatically transferred to Oneflow whenever you create a contract from the deal in HubSpot. This guide explains how to set this up.

Continuing with our example, you can set up a separate set of Oneflow data fields for each company in the HubSpot deal: one field for the company name and one for the address.

Now, when you create the contract from the deal, Oneflow uses each company's details saved in HubSpot to populate the matching data fields in the contract.

EXAMPLES

  • Example Scenario 1: A deal in HubSpot has 2 companies associated with it.
    • Company 1 name (property in HubSpot) → Company_1_name (data field in Oneflow)
    • Company 2 name (property in HubSpot) → Company_2_name (data field in Oneflow)
       
  • Example Scenario 2: A company in HUbSpot has 2 deals associated with it.
    • Deal 1 name (property in HubSpot) → Deal_1_name (data field in Oneflow)
    • Deal 2 name (property in HubSpot) → Deal_2_name (data field in Oneflow)

The same applies to any object in HubSpot (Deal, Company, Contact, Appointment, etc.).

BEFORE YOU START

  • You need administrator access in Oneflow to change these settings.
  • Your HubSpot integration must be connected.
  • In HubSpot, associate the records (deals, contacts, companies, etc.) you want to use to the record you will create the contract from (i.e. deals, contacts, companies, etc.). 

    For example, make sure the two companies, whose details you wish to transfer, are associated with the deal you are creating a contract from.

Open settings

  1. In HubSpot, open a record, such as a deal.
  2. In the Oneflow card, select Settings.
  3. Go to Data mapping > Setup properties.
  4. Select Manage multiple records.

Choose which records to use

Objects are entities in HubSpot such as a Deal, Company, Contact, etc. A Record refer to a particular deal (I.e. “Xyz deal”), company, contact.

  1. Select Configure object. If you already have a configuration, select + Add object configuration.


     

  2. Under HubSpot object, select the type of record whose details you want to use. 

    For example: for companies linked to a deal, select Company.

  3. Choose how Oneflow should identify the records:

    Method How it works
    Position-based order Records fill the numbered fields in alphabetical order. For companies linked to a deal, the primary company comes first.
    Label-based identification (HubSpot association labels) Records fill fields based on their HubSpot association labels. For example, use separate labels for a billing company and a parent company.
  4. Under Manage records, select Add additional record for each linked record you want to include. Each entry adds a place for that record's data.

  5. For label-based identification, set the HubSpot association label for each additional record. Use the label assigned to the link in HubSpot.
  6. Select Save configuration.

Understand the record count

Suppose two companies are already linked to a deal in HubSpot. In Manage multiple records, configure Company to use two additional records, one for each linked company.

In your Oneflow template, add the data fields for those two additional records (i.e. “Company_3_email” should have a corresponding data field in Oneflow template) When you create a contract from the deal, Oneflow populates those fields with the two companies’ details.

The configuration in the image for example, shows four records because it also includes a Base record. The base record’s data fields are used when you create a contract directly from a company record.

Contacts use numbered participant fields without a separate base field.

SIGNING ORDER

When signing order is enabled, it takes priority over the contact identification method. Other object types keep their selected method.

Your configuration sets the number of records whose data can fill the contract. Extra records beyond that number do not get another set of fields.

Choose which properties to copy

The record configuration applies to all property mappings for that object. For example, mapping Company name makes that property available for each configured Company record.

  1. Select Back to property mappings.

  2. To add a property, select Add new property. You can also use an existing mapping.
  3. Select the Object, then the HubSpot property you want to copy. Review the Oneflow field name.

  4. Choose whether to allow updates after contract creation:
    • HubSpot to Oneflow: Allow changes in HubSpot to be pushed to the contract.
    • Oneflow to HubSpot: Also allow supported changes in the contract to be sent back to HubSpot.
  5. Select Save changes.

Properties are copied when you create the contract by default. For ongoing updates, see Two-way sync.

DATA FIELD LIMITS

Each mapped property uses one data field per configured record. If you reach your account's data-field limit, contact Oneflow support to increase your limits or reduce the number of records or remove properties you do not need.

Add the fields to your template

Add the additional records’ data fields to your Oneflow template. For the two-company example, add separate name and address fields for each company.

For template setup steps, see Create a HubSpot template in Oneflow.

Publish the updated template, then select it when creating a contract from the deal in HubSpot. Check that both companies’ details appear in the contract before sending it.

Change or remove a configuration

In Manage multiple records, select the pencil icon beside an object to edit its configuration. Make your changes and select Save configuration.

  • To remove an additional record, select its trash icon and confirm Remove. The remaining entries are renumbered. Select Save configuration to keep the change.

IMPORTANT

Removing the last additional record from a saved configuration removes the whole object configuration when you confirm Remove.

  • To remove a whole configuration directly, select its trash icon in Manage multiple records, then select Delete.

NOTE

These actions remove the integration configuration. Your HubSpot records remain in HubSpot.

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request