EndPoint Search Contacts
Name
search_contacts
Description
Search contacts using one or more filter conditions. Choose properties to include in the output.
Parameters
Parameter | Label | Required | Options | Description |
---|---|---|---|---|
Properties | Properties | NO | ||
SearchFilters | SearchFilters | NO |
Output Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Raw | Description |
---|---|---|---|---|---|
Id |
DT_WSTR
|
nvarchar(4000)
|
4000 | False |
|
IsArchived |
DT_BOOL
|
bit
|
False |
||
CreatedAt |
DT_DBTIMESTAMP
|
datetime
|
False |
||
UpdatedAt |
DT_DBTIMESTAMP
|
datetime
|
False |
||
[Dynamic Column] |
DT_WSTR
|
nvarchar(2000)
|
2000 | False |
[$parent.label$] |
Input Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Raw | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
There are no Static columns defined for this endpoint. This endpoint detects columns dynamically at runtime. |
Examples
SSIS
Use Hubspot Connector in API Source component to read data or in API Destination component to read/write data:
Search Contacts using API Source
Hubspot
Search Contacts

Search Contacts using API Destination
Hubspot
Search Contacts

ODBC application
Use these SQL queries in your ODBC application data source:
Get contact by email (search)
Gets contacts
SELECT Id
, IsArchived
, CreatedAt
, UpdatedAt
, email
, firstname
, lastname
, company_size
--, custom_checkbox
--, custom_multi_select
--, custom_number
--, custom_pickuser
--, custom_richtext
--, custom_string
--, custom_string_multi
FROM search_contacts
With(SearchFilters='[ {"propertyName": "email", "operator": "EQ", "value": "bh@hubspot.com" } ]')
SQL Server
Use these SQL queries in SQL Server after you create a data source in Data Gateway:
Get contact by email (search)
Gets contacts
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT Id
, IsArchived
, CreatedAt
, UpdatedAt
, email
, firstname
, lastname
, company_size
--, custom_checkbox
--, custom_multi_select
--, custom_number
--, custom_pickuser
--, custom_richtext
--, custom_string
--, custom_string_multi
FROM search_contacts
With(SearchFilters=''[ {"propertyName": "email", "operator": "EQ", "value": "bh@hubspot.com" } ]'')';
EXEC (@MyQuery) AT [LINKED_SERVER_TO_HUBSPOT_IN_DATA_GATEWAY];