Endpoint Read Attachment
Name
get_attachment
Description
Read attachment information [API reference]
Parameters
| Parameter | Required | Options |
|---|---|---|
|
Name:
Label: Attachment ID |
YES |
Output Columns
| Label | Data Type (SSIS) | Data Type (SQL) | Length | Description |
|---|---|---|---|---|
| attachment_id |
DT_I8
|
bigint
|
||
| attachment_file_name |
DT_WSTR
|
nvarchar(255)
|
255 | |
| attachment_content_url |
DT_WSTR
|
nvarchar(500)
|
500 | |
| attachment_url |
DT_WSTR
|
nvarchar(500)
|
500 | |
| attachment_content_type |
DT_WSTR
|
nvarchar(100)
|
100 | |
| attachment_size |
DT_I8
|
bigint
|
||
| attachment_height |
DT_I4
|
int
|
||
| attachment_width |
DT_I4
|
int
|
||
| attachment_deleted |
DT_BOOL
|
bit
|
||
| attachment_inline |
DT_BOOL
|
bit
|
||
| attachment_thumbnail_id |
DT_I8
|
bigint
|
||
| attachment_thumbnail_file_name |
DT_WSTR
|
nvarchar(255)
|
255 | |
| attachment_thumbnail_content_url |
DT_WSTR
|
nvarchar(500)
|
500 | |
| attachment_thumbnail_url |
DT_WSTR
|
nvarchar(500)
|
500 | |
| attachment_thumbnail_content_type |
DT_WSTR
|
nvarchar(100)
|
100 | |
| attachment_thumbnail_size |
DT_I8
|
bigint
|
||
| attachment_thumbnail_height |
DT_I4
|
int
|
||
| attachment_thumbnail_width |
DT_I4
|
int
|
||
| attachment_thumbnail_deleted |
DT_BOOL
|
bit
|
||
| attachment_thumbnail_inline |
DT_BOOL
|
bit
|
If the column you are looking for is missing, consider customizing Zendesk Connector.
Input Columns
| Label | Data Type (SSIS) | Data Type (SQL) | Length | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| There are no Static columns defined for this endpoint. This endpoint detects columns dynamically at runtime. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Examples
SSIS
Use Zendesk Connector in API Source or in API Destination SSIS Data Flow components to read or write data.
API Source
API Source - Zendesk
Zendesk Connector can be used to integrate Zendesk REST API in your App / BI Tools. You can read/write data about Tickets, Activity, Users, Organizations and more.
Zendesk
Read Attachment
| Required Parameters | |
|---|---|
| Attachment ID | Fill-in the parameter... |
| Optional Parameters | |
| EnableArrayFlattening | True |
API Destination
API Destination - Zendesk
Zendesk Connector can be used to integrate Zendesk REST API in your App / BI Tools. You can read/write data about Tickets, Activity, Users, Organizations and more.
Zendesk
Read Attachment
| Required Parameters | |
|---|---|
| Attachment ID | Fill-in the parameter... |
| Optional Parameters | |
| EnableArrayFlattening | True |
ODBC application
Use these SQL queries in your ODBC application data source:
Read attachment
SELECT * FROM get_attachment
WITH
(
"attachment_id" = 'abcd-1234-attachment_id'
)
SQL Server
Use these SQL queries in SQL Server after you create a data source in Data Gateway:
Read attachment
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM get_attachment
WITH
(
"attachment_id" = ''abcd-1234-attachment_id''
)';
EXEC (@MyQuery) AT [LS_TO_ZENDESK_IN_GATEWAY];