Introduction
This article serves as a guide on how to use the two-way sync feature and make the most out of it to optimize your flow.
You can use the Two-Way Sync feature to map and synchronize data fields between HubSpot and Oneflow in one or more of the following ways.
- Sync data fields from HubSpot to Oneflow.
- Sync data fields from HubSpot to Oneflow and from Oneflow to HubSpot (Two-way sync).
- Use the default Sync-on-create option to sync and send data fields to Oneflow when you create a contract from HubSpot.
Configure Two-way sync for HubSpot properties
- Log into HubSpot as an administrator.
- Navigate to any HubSpot object (e.g., Deal, Contact, Company, Ticket, Quote, Listing, Appointment, Service, or Custom Object).
- Click on Settings in the Oneflow pane.
- Select the Two-way Sync & mapping tab.
-
Select a HubSpot object from the first dropdown.
Object: The HubSpot entity, e.g., This can be a:- Deal
- Company
- Contact
- Ticket
- Quote
- Listing
- Appointment
- Service
- Course
- Custom object
INFORMATION
If you have linked properties belonging to any HubSpot object other than a Contact, the HubSpot object used to create the contract must have only one association of that type. If multiple associations exist, no data is transferred.
- Select a property from the second dropdown. Optionally, modify the automatically generated name for the mapped Oneflow data field.
Property: Each HubSpot object will have its own properties or attributes.
Oneflow Label: The data field in Oneflow (to which the HubSpot property is mapped). - Select one or more of the following sync direction options.
- Sync-on-create (Default): The property's value is transferred from HubSpot to a Oneflow data field when the contract is created (i.e., syncing occurs only once). This sync direction is enabled by default.
- HubSpot to Oneflow: The property's value can be transferred from HubSpot to the mapped Oneflow data field after contract creation. See Pushing updates to Oneflow.
- Oneflow to HubSpot: The data field's value can be transferred from Oneflow to the mapped HubSpot property. See Fetching updates from Oneflow.
- For two-way sync, enable both HubSpot to Oneflow and Oneflow to HubSpot checkboxes.
- Click on Save Changes.
|
INFORMATION
|
Sync line item properties
You can also sync line item properties in a HubSpot deal with product table fields in a Oneflow contract.
|
INFORMATION Do you use more than one product table? You can now map and sync line items from multiple product tables in HubSpot. Learn how to set up multiple product table support. |
-
In the Two-way sync & mapping tab, click Setup line Items to view mappings between HubSpot line item properties and Oneflow product table fields.
-
Configure the sync direction options for each HubSpot line item property by selecting one or more of the following checkboxes.
- Sync-on-Create (Default): The line item property's value is transferred from HubSpot to a Oneflow data field when the contract is created (i.e. syncing occurs only once). This sync direction is enabled by default.
- HubSpot to Oneflow: The line item property's values can be transferred from HubSpot to Oneflow product tables even after contract creation. See Pushing updates to Oneflow.
- Oneflow to HubSpot: The product table field's value can be transferred from Oneflow to the mapped HubSpot line item property. See Fetching updates from Oneflow.
For two-way sync, enable both HubSpot to Oneflow and Oneflow to HubSpot checkboxes.
- Click Save Changes.
|
NOTE
|
By default, HubSpot line item properties map to these Oneflow product table fields: Name, Description, Price, Discount, Quantity, Tax.
|
NOTE
|
Tax Sync
Tax values are transferred from the HubSpot TAX RATE line item property as percentages and rounded to 3 decimal places.
-
Tax can be synced during contract creation (Sync-on-create) and via Push updates to Oneflow.
|
NOTE Tax values cannot be fetched from Oneflow back to HubSpot. |
Default sync configurations
- On first launch, HubSpot properties are mapped to a default set of Oneflow data fields.
- Sync-on-create is the default direction for these fields.
|
Product tables When transferring line items from HubSpot to Oneflow, price visibility depends on enabled columns in the product table of the contract’s template.
|
|
Date formats Date/time properties from HubSpot are automatically converted when syncing to Oneflow. Once the contract is created, the date format is fixed. Change the predefined date format in Oneflow:
|
Currency sync
If enabled, line item currency in HubSpot is reflected in the Oneflow product table.
For instance, if the line item’s Unit price is 11.99 USD, the same currency unit (i.e. 'USD') will be transferred to the product table in the Oneflow contract as a postfix or a prefix depending on your configuration.
To enable currency sync:
-
In HubSpot > Oneflow settings > Two-way sync & mapping > Setup line Items, enable the Sync on create checkbox for Currency and click Enable. (Optionally, enable the HubSpot to Oneflow checkbox to push updates from HubSpot to Oneflow after contract creation).
-
Choose whether the currency unit is a prefix (e.g., USD 11.99) or postfix (11.99 USD) in the Oneflow product table.
- Click Save changes.
|
INFORMATION
|
Monitor contract data changes
When data fields or product table fields change in Oneflow, a notification appears in the Sync Update label of the contract card (Updates are available in Oneflow).
-
Fetch updates (Oneflow to HubSpot): Sync changes from Oneflow back to HubSpot.
- Enable Automatic fetching of updates, or
- Manually Fetch updates from Oneflow.
- Push updates (HubSpot to Oneflow): Sync HubSpot property changes to Oneflow data fields using Push updates to Oneflow.
Push updates to Oneflow
Once you have made changes to HubSpot properties, you can sync these changes to their mapped data fields in Oneflow. This updates Oneflow data fields with the values of their mapped HubSpot properties.
|
INFORMATION
|
- Open any HubSpot object (e.g., Deal, Contact, Company, Ticket, Quote, Listing, Appointment, Service, or Custom Object) in HubSpot.
- Change one or more HubSpot property values.
- In the Oneflow pane, open the Actions dropdown on a contract card.
- Click Push Updates to Oneflow.
- Select Confirm.
- A confirmation message shows the sync status. See Sync Status Scenarios.
|
NOTE Push Updates to Oneflow is disabled when the contract is Signed or Declined. When the status is Pending, you can push updates. |
Sync status scenarios
-
The contract does not have a main product group for setting products.
Resolution: Add a Product Table to the HubSpot template used for contract creation in Oneflow.
|
|
-
The unit discount price for one or more products is higher than the unit price.
Resolution: Ensure Unit Discount < Unit Price for all line items.
-
Invalid contract state: The contract cannot be modified because it is signed or declined.
Resolution: Ensure the contract's status is Pending.
- Successful Sync operation: Your HubSpot data was synced with the Oneflow contract.
Fetch updates from Oneflow
Once you have made changes to data fields in Oneflow, you can sync these changes to their mapped properties in HubSpot.
You can enable automatic fetching or choose to manually fetch updates.
Automatically fetch updates
- Click Settings in the Oneflow pane.
- Select the Two-way Sync & mapping tab.
- Enable the Automatically update changes from Oneflow to HubSpot toggle.
- Click Close on the message that appears.
- Your HubSpot properties now update in real time when Oneflow data fields change.
|
WARNING
|
To disable automatic fetching:
- Disable the Automatically update changes from Oneflow to HubSpot toggle.
- Click Close on the message that appears.
Manually fetch updates
|
NOTE
|
- Change one or more data fields in your Oneflow contract.
- Open the related HubSpot object in HubSpot (e.g., Deal, Contact, Company, Ticket, Quote, Listing, Appointment, Service, or Custom Object).
- The Sync Update field shows Updates are available in Oneflow when changes exist.
- In the Oneflow pane, open the Actions dropdown on a contract card.
- Click Fetch updates from Oneflow.
- Select Confirm.
- A confirmation message shows the sync status. See Sync Status Scenarios.
- After a successful fetch operation, reload the HubSpot page to view updated values.
- When all updates have been fetched, the contract state changes to Pending.
|
NOTE
|
Fetch complex data types
You can synchronize values for the following field types:
- Multiple checkboxes
- Single checkbox
- Dropdown select
- Radio select
Map corresponding HubSpot properties in Two-way sync & mapping, then use Fetch updates from Oneflow or enable automated fetch.
|
IMPORTANT When entering values in Oneflow, ensure they match the expected format for the mapped HubSpot property. |
Multiple checkboxes
When entering values to a Oneflow data field mapped to a multiple checkbox property in HubSpot, each value needs to be separated with a semicolon. Text values that do not match any options in the property will be ignored and will not be transferred to HubSpot.
- Example: Assume a multiple checkbox property in HubSpot called Required options contains three options (Option 1, Option 2, Option 3).
- Then assume the Required options property is mapped to a Oneflow data field called Deal_required options. A Oneflow contract is then created from the deal and a customer selects two options (Option 1 and Option 3).
- This is denoted in the corresponding Oneflow data field as:
Option 1;Option 3- When fetching updates from Oneflow to HubSpot, Option 1 and Option 3 of the Required options property will be in a checked state.
Single checkbox / Dropdown / Radio:
When entering values to a Oneflow data field mapped to a single checkbox, dropdown select, or radio select property in HubSpot, ensure that the value is an exact match to at least one of the options in the HubSpot property. Text values that do not match any options in the property will be ignored and will not be transferred to HubSpot.
- Example: Assume a single checkbox property in HubSpot called Invoice Type contains the following options.
- Then assume the Invoice type property is mapped to a Oneflow data field called Deal_Invoice Type. A Oneflow contract is then created from the deal and a customer selects the E-mail option.
- This is denoted in the corresponding Oneflow data field as:
E-mail- When fetching updates from Oneflow to HubSpot, the Invoice Type value is set to E-mail.
Sync status scenarios
- The requested contract does not exist (it may have been deleted in Oneflow).
- Successfully fetched updates.
Configure deal amount
When enabled, the HubSpot deal amount updates automatically when you fetch product updates from Oneflow. The mapped deal amount data field and Oneflow contract value are updated as well.
|
INFORMATION This feature is turned off by default. |
To enable automatic deal amount updates on fetch:
- Log into HubSpot as an administrator.
- Navigate to a Deal.
- Click Settings in the Oneflow pane.
- Select the Two-way Sync & mapping tab.
- Click Configure Deal Amount.
- Enable the toggle.
-
Select the Default deal amount calculation method from the dropdown.
|
IMPORTANT The Default deal amount chosen here must match the equivalent setting in HubSpot. |
After configuration:
- The HubSpot deal amount updates when product updates are fetched from Oneflow.
- If automatic fetch is enabled, the update happens immediately after you save changes in Oneflow. Otherwise, fetch manually.
- The Oneflow deal amount data field and contract value are also updated.
Transferring decimal values to Oneflow contracts
When creating a contract, pushing changes to Oneflow, or fetching changes from Oneflow, you can transfer line item prices and quantities containing decimal values.
- Price: Up to 4 decimal places are supported for Price fields in Oneflow. Higher precision from HubSpot is rounded to 4 decimals on transfer (applies to both Price 1 and Price 2 fields in Oneflow).
- Quantity: All decimal places present in the HubSpot line item value are transferred to Oneflow.
|
INFORMATION
|