Hubspot Connector
Documentation
Version: 5
Documentation
Endpoint

Archive Contacts


Name

archive_contacts

Description

No description available

Related Tables

Contacts

Parameters

Parameter Label Required Options Description
There are no parameters

Output Columns

Label Data Type (SSIS) Data Type (SQL) Length Raw Description
Status DT_WSTR nvarchar(50) 50 False
If the column you are looking for is missing, consider customizing Hubspot Connector.

Input Columns

Label Data Type (SSIS) Data Type (SQL) Length Raw Description
Id DT_WSTR nvarchar(100) 100 False Id of a company
Required columns that you need to supply are bolded.

Examples

SSIS

Use Hubspot Connector in API Source component to read data or in API Destination component to read/write data:

Delete rows from Contacts table using API Destination

This Endpoint belongs to Contacts table, therefore you cannot work with it directly. Use this table and table-operation pair instead:

Hubspot
Contacts
Delete
SSIS API Destination - Access table operation

ODBC application

Use these SQL queries in your ODBC application data source:

Delete a contact

Deletes a contact

DELETE FROM Contacts Where Id=1234

Delete multiple records - (BULK read / write from external source)

This examples shows how to perform bulk delete using SOURCE clause. It reads data from external system (in this example MS SQL Server) and sends data to Hubspot using Bulk API

DELETE FROM Contacts 
SOURCE(
  'MSSQL' --ODBC or OLEDB
  ,'Data Source=localhost;Initial Catalog=Test;Integrated Security=true'
  ,'select 104897 as Id 
    UNION 
    select 104898 as Id'
)

archive_contacts endpoint belongs to Contacts table(s), and can therefore be used via those table(s).

SQL Server

Use these SQL queries in SQL Server after you create a data source in Data Gateway:

Delete a contact

Deletes a contact

DECLARE @MyQuery NVARCHAR(MAX) = 'DELETE FROM Contacts Where Id=1234';

EXEC (@MyQuery) AT [LS_TO_HUBSPOT_IN_GATEWAY];

Delete multiple records - (BULK read / write from external source)

This examples shows how to perform bulk delete using SOURCE clause. It reads data from external system (in this example MS SQL Server) and sends data to Hubspot using Bulk API

DECLARE @MyQuery NVARCHAR(MAX) = 'DELETE FROM Contacts 
SOURCE(
  ''MSSQL'' --ODBC or OLEDB
  ,''Data Source=localhost;Initial Catalog=Test;Integrated Security=true''
  ,''select 104897 as Id 
    UNION 
    select 104898 as Id''
)';

EXEC (@MyQuery) AT [LS_TO_HUBSPOT_IN_GATEWAY];

archive_contacts endpoint belongs to Contacts table(s), and can therefore be used via those table(s).