# Operation Synchronization ERP Bridge

Please [refer to this section](https://docs.erpbridge.io/the-operation/2-hs-greater-than-db-filters) for technical details on how to configure ERP Bridge.

## Filters

In our example in the "Filters" section we set the Lifecycle Stage as HubSpot property that conveys the selection of data to be synchronized from HubSpot to SQL view. So every time on HubSpot a contact has the Lifecycle Stage property populated as a Customer at the time of synchronization with ERP Bridge will pass into the SQL view which in turn is synchronized in the ERP.

<figure><img src="/files/2jfO2DyO0jveHy7wttV4" alt=""><figcaption></figcaption></figure>

## Database Mapping

In the Database Mapping section you decide the fields to synchronize to SQL from HubSpot CRM.

In the left column select the HubSpot data you want to sync to SQL and choose in the right column to which SQL column to link them. For advice on which properties synchronize please refer to the [recommended synchronization section](/readme/companies/synchronization-from-hubspot-to-erp/recommended-synchronization-sql-from-hubspot-to-database.md), while for information on how to build the Database Mapping please refer to the [documentation](https://docs.erpbridge.io/the-operation/2-database-mapping).

<figure><img src="/files/ofNwlWrRUFQHst5E1omF" alt=""><figcaption><p>Select the fields on the left on HubSpot to connect with its SQL column to indicate on the right column</p></figcaption></figure>

## Decision rules

The following section is Decisions rules, from here you set the actions that the agent will perform once synchronization is launched. For general information, please refer to [the appropriate section](#decision-rules).

<figure><img src="/files/SifXwJYqupFUYYB3yb9y" alt=""><figcaption></figcaption></figure>

In case the choice falls on the field ERP code:

* indicating =0 means that if the ERP code does not exist, the agent will update the record,
* in case of multiple records with the same ERP code (=1), the agent will update the record,
* in case of multiple equal records (>1), the agent will skip the record.

{% hint style="danger" %}
Remember the importance of choosing as a field "primary key" a field that will always be populated in a unique way otherwise the records will be duplicated in the new synchronizations.
{% endhint %}

The new Company operation will now appear on the Homepage, to enable synchronization make sure the connector is colored.

<figure><img src="/files/xr52Kyzc1sor1RAPqvbY" alt="" width="375"><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://howto.erpbridge.io/readme/companies/synchronization-from-hubspot-to-erp/operation-synchronization-erp-bridge.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
