Table Tickets_Bulk
Description
No description available
Parameters
Parameter | Label | Required | Options | Description | Help | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
There are no parameters |
Supported Operations
Below section contains supported CRUD operations. Each operation is executed by some EndPoint behind the scene.Method | Supported | Reference EndPoint |
---|---|---|
SELECT | get_tickets | |
INSERT | post_tickets | |
UPDATE | put_tickets | |
UPSERT | ||
DELETE | delete_tickets | |
LOOKUP | get_tickets_by_ids |
Examples
SSIS
Use Zendesk Connector in API Source component to read data or in API Destination component to read/write data:
Read from Tickets (Bulk) table using API Source

Read/write to Tickets (Bulk) table using API Destination

ODBC application
Use these SQL queries in your ODBC application data source:
Delete multiple by tickets by Id list - BULK (comma seperated - max 100 ids)
DELETE FROM Tickets_Bulk WHERE [$$ticket_ids]='111,222,333'
Update ticket with Add or remove tags
Update ticket with Add new tags or remove tags. Adding / removing tags available via special field names only in BULK mode so you must use Tickets_BULK table.
Update Tickets_Bulk
SET subject='New subject'
, additional_tags ='["new-tag1","new-tag2"]' --//add some tags
--, remove_tags='["old-tag1","old-tag2"]' --//removes some tags
--, tags='["tag1","tag2"]' --//overwrite all tags
, status='pending' --new, solved, closed
Where Id = 1234
Create multiple ticket(s) using a RAW JSON body (single or multiple)
INSERT INTO Tickets_Bulk(_rawdoc_)
VALUES(
'[
{
"subject": "Test ticket #1",
"comment": {
"body": "Test ticket #1"
},
"priority": "urgent"
},
{
"subject": "Test ticket #2",
"comment": {
"body": "This is a comment for #2"
},
"priority": "normal"
}
]'
)
SQL Server
Use these SQL queries in SQL Server after you create a data source in Data Gateway:
Delete multiple by tickets by Id list - BULK (comma seperated - max 100 ids)
DECLARE @MyQuery NVARCHAR(MAX) = 'DELETE FROM Tickets_Bulk WHERE [$$ticket_ids]=''111,222,333''';
EXEC (@MyQuery) AT [LINKED_SERVER_TO_ZENDESK_IN_DATA_GATEWAY];
Update ticket with Add or remove tags
Update ticket with Add new tags or remove tags. Adding / removing tags available via special field names only in BULK mode so you must use Tickets_BULK table.
DECLARE @MyQuery NVARCHAR(MAX) = 'Update Tickets_Bulk
SET subject=''New subject''
, additional_tags =''["new-tag1","new-tag2"]'' --//add some tags
--, remove_tags=''["old-tag1","old-tag2"]'' --//removes some tags
--, tags=''["tag1","tag2"]'' --//overwrite all tags
, status=''pending'' --new, solved, closed
Where Id = 1234';
EXEC (@MyQuery) AT [LINKED_SERVER_TO_ZENDESK_IN_DATA_GATEWAY];
Create multiple ticket(s) using a RAW JSON body (single or multiple)
DECLARE @MyQuery NVARCHAR(MAX) = 'INSERT INTO Tickets_Bulk(_rawdoc_)
VALUES(
''[
{
"subject": "Test ticket #1",
"comment": {
"body": "Test ticket #1"
},
"priority": "urgent"
},
{
"subject": "Test ticket #2",
"comment": {
"body": "This is a comment for #2"
},
"priority": "normal"
}
]''
)';
EXEC (@MyQuery) AT [LINKED_SERVER_TO_ZENDESK_IN_DATA_GATEWAY];