Zendesk Connector
Documentation
Version: 9
Documentation
Endpoint

Delete Ticket


Name

delete_ticket

Description

Delete ticket by id. [API reference]

Related Tables

Tickets (Row by Row)

Parameters

Parameter Label Required Options Description
id Ticket ID for Delete YES

Output Columns

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

Input Columns

Label Data Type (SSIS) Data Type (SQL) Length Raw Description
id DT_I8 bigint False
Required columns that you need to supply are bolded.

Examples

SSIS

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

Delete rows from Tickets (Row by Row) table using API Destination

This Endpoint belongs to Tickets (Row by Row) table, therefore you cannot work with it directly. Use this table and table-operation pair instead:

Zendesk
Tickets (Row by Row)
Delete
SSIS API Destination - Access table operation

ODBC application

Use these SQL queries in your ODBC application data source:

Delete ticket

SELECT * FROM delete_ticket
WITH
(
    "id" = 'abcd-1234-id'
)

Delete a ticket by Id

DELETE FROM Tickets WHERE Id=111

delete_ticket endpoint belongs to Tickets 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 ticket

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM delete_ticket
WITH
(
    "id" = ''abcd-1234-id''
)';

EXEC (@MyQuery) AT [LS_TO_ZENDESK_IN_GATEWAY];

Delete a ticket by Id

DECLARE @MyQuery NVARCHAR(MAX) = 'DELETE FROM Tickets WHERE Id=111';

EXEC (@MyQuery) AT [LS_TO_ZENDESK_IN_GATEWAY];

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