Reference

Endpoint Read Ticket Attachments


Name

get_ticket_attachments

Description

Returns attachments for the specified Ticket ID. [API reference]

Parameters

Parameter Required Options
Name: ticket_id

Label: Ticket ID

YES
Name: sort_order

Label: Sort Order

Sort order
Option Value
desc desc
asc asc
Name: include_inline_images

Label: Include inline images

Default is false. When true, inline images are also listed as attachments in the response
Option Value
false false
true true

Output Columns

Label Data Type (SSIS) Data Type (SQL) Length Description
id DT_I8 bigint
file_name DT_WSTR nvarchar(255) 255
content_url DT_WSTR nvarchar(500) 500
mapped_content_url DT_WSTR nvarchar(500) 500
content_type DT_WSTR nvarchar(255) 255
size DT_I4 int
width DT_I4 int
height DT_I4 int
inline DT_BOOL bit
deleted DT_BOOL bit
thumbnails DT_WSTR nvarchar(4000) 4000
comment_id DT_I8 bigint
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 Ticket Attachments
Required Parameters
Ticket ID Fill-in the parameter...
Optional Parameters
Sort Order
Include inline images
SSIS API Source - Read from table or endpoint

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 Ticket Attachments
Required Parameters
Ticket ID Fill-in the parameter...
Optional Parameters
Sort Order
Include inline images
SSIS API Destination - Access table or endpoint

ODBC application

Use these SQL queries in your ODBC application data source:

Get all attachment urls for a specific ticket

SELECT * FROM get_ticket_attachments
WITH(
	  ticket_id='104351'
)

SQL Server

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

Get all attachment urls for a specific ticket

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM get_ticket_attachments
WITH(
	  ticket_id=''104351''
)';

EXEC (@MyQuery) AT [LS_TO_ZENDESK_IN_GATEWAY];