Hello HubSpot Support,
We are implementing company synchronization between our platform and HubSpot using:
POST /crm/v3/objects/companies/search
Our matching sequence is:
-
Search for an existing company using a unique company hash.
-
If no hash match exists, search using the combined normalized values of:
- Company Name
- Address
- Postal Code
Normalization means:
- Removing leading and trailing whitespace.
- Replacing multiple internal spaces with a single space.
- Comparing values case-insensitively.
For example:
Platform:
Name: " ACME Bikes "
Address: "Main Street 12"
Postal Code: "1000"
HubSpot:
Name: "Acme Bikes"
Address: "Main Street 12"
Postal Code: "1000"
After normalization, these records should be considered a match.
Currently, we search by the HubSpot name property and then normalize and compare the returned company’s name, address, and zip values in our application.
However, HubSpot search does not appear to ignore multiple internal spaces. Searching for:
Acme Bikes
does not reliably return a company stored as:
Acme Bikes
Because the existing company is not returned as a candidate, our application cannot perform the normalized comparison. This may result in duplicate companies being created.
Could you please clarify:
- Is there a CRM Search API operator that supports case-insensitive exact matching while ignoring leading, trailing, and repeated internal whitespace?
- Does the
EQoperator perform any case or whitespace normalization? - Would
CONTAINS_TOKENbe suitable for retrieving candidates in this scenario? - Can we search using
name,address, andzipfilters in the samefilterGroupand apply normalized matching? - When multiple filters are placed in the same
filterGroup, are they combined using AND, and is each value normalized before comparison? - What is the recommended approach for avoiding missed matches when whitespace differs?
- Is maintaining a separate normalized custom property, such as
normalized_company_match_key, the recommended solution?
The property would contain a value such as:
acme bikes|main street 12|1000
We would appreciate your recommended approach for implementing this matching reliably through the HubSpot CRM Search API.