The HubEngine offers you the possibility to share relations between plans. This means that plans use the same relation store. You can manage relations in a plan under the “Relations” tab.
The right column shows the function for managing relations. If you want to enable sharing of relations for a plan, first click on the “Share Relations” button. Then you need to confirm this with your set up 2-factor authentication.
After that you can select the relation store of this plan from another plan to share the relations! That means, in the first step you select which plan should serve as basis for sharing the relations. In the second step, you go to another plan and select the relation store of the plan that you activated in the first step.
When do I use shared relations?
Shared relations are useful if you
- want to map different fields for Create and Update
- want to configure different conditions for Create and Update
- want to define different actions for Create and Update
We synchronize contacts between SAP and HubSpot – with one plan each for Create and Update. In the Create plan, we have enabled the sharing of relations. As a result, the following options ( screenshot below) appear in the Update plan. In both plans, the SAP system is primary (the left system) and HubSpot is secondary (the right system). Therefore, the primary direction SAP(id) – HubSpot(id) is set up as default. We now need to match the directions if we want to share the relations with the Create plan.
Therefore, we select the primary direction again here, since in both plans SAP is primary (left) and HubSpot is secondary (right). Remember: The options for the plan Create Contacts: SAP – HubSpot only appear because we previously enabled sharing in this plan!
Example
We distinguish in two plans: Create and Update. One plan creates only new records, the other one updates only records. This can be useful, for example, if the creation or update of a record should trigger a different process each.
- Create: A sales person is notified
- Update: A score is increased
The configuration of the plans could look like this:
Plan Create:
- Action: Set checkbox for field “notify_sales”
Plan Upate:
- Condition: Synchronize only if field “mail_opened” is true
- Action: Set checkbox for field “increase_score”