Reference

Endpoint Read Requests Search


Name

get_requests_search

Description

Returns a requests using search criteria. [API reference]

Parameters

Parameter Required Options
Name: query

Label: Search Criteria

The search query based on this syntax https://support.zendesk.com/hc/en-us/articles/203663226
YES
Option Value
Example: Search by Ticket ID 112233
Example: Search by Ticket Status status
Example: Search by Some Text SomeText
Example: Search By Status SomeText
Example: Search by Type and Status type:ticket status:open
Example: Search by Type and Name type:user "Jane Doe"
Example: Search by Type and CreationDate type:organization created< 2015-05-01
Example: Search organizations updated after some date type:organization updated > 2015-05-01
Example: Search users updated after some date type:user updated > 2015-05-01
Example: Search By Type and Tag type:ticket tags:red tags:blue
Name: sort_by

Label: Sort By

Sort By field
Option Value
updated_at updated_at
created_at created_at
Name: sort_order

Label: Sort Order

Sort order
Option Value
desc desc
asc asc
Name: status

Label: Status

Sort order
Option Value
new new
open open
pending pending
solved solved
closed closed
Name: organization_id

Label: organization_id

Name: cc_id

Label: cc_id

Output 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.
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 Requests Search
Required Parameters
Search Criteria Fill-in the parameter...
Optional Parameters
Sort By
Sort Order
Status
organization_id
cc_id
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 Requests Search
Required Parameters
Search Criteria Fill-in the parameter...
Optional Parameters
Sort By
Sort Order
Status
organization_id
cc_id
SSIS API Destination - Access table or endpoint

ODBC application

Use these SQL queries in your ODBC application data source:

Read requests search

SELECT * FROM get_requests_search
WITH
(
    "query" = 'abcd-1234-query'
)

SQL Server

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

Read requests search

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

EXEC (@MyQuery) AT [LS_TO_ZENDESK_IN_GATEWAY];