Reference

Endpoint Read Tickets Count (for Organization)


Name

get_tickets_count_org

Description

Returns an approximate count of tickets for specified organization_id. If the count exceeds 100,000, it is updated every 24 hours. The count[refreshed_at] property is a timestamp that indicates when the count was last updated. Note: When the count exceeds 100,000, count[refreshed_at] may occasionally be null. This indicates that the count is being updated in the background, and count[value] is limited to 100,000 until the update is complete. [API reference]

Parameters

Parameter Required Options
Name: organization_id

Label: Organization ID

YES

Output Columns

Label Data Type (SSIS) Data Type (SQL) Length Description
value DT_I8 bigint
refreshed_at DT_DBTIMESTAMP datetime
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
Read and write Zendesk data effortlessly. Manage tickets, users, and organizations — almost no coding required.
Zendesk
Read Tickets Count (for Organization)
Required Parameters
Organization ID Fill-in the parameter...
SSIS API Source - Read from table or endpoint

API Destination

API Destination - Zendesk
Read and write Zendesk data effortlessly. Manage tickets, users, and organizations — almost no coding required.
Zendesk
Read Tickets Count (for Organization)
Required Parameters
Organization ID Fill-in the parameter...
SSIS API Destination - Access table or endpoint

ODBC application

Use these SQL queries in your ODBC application data source:

Read tickets count for organization

<p>Reads the approximate count of tickets for a specific organization. This example demonstrates using the <code>get_tickets_count_org</code> endpoint with the <code>organization_id</code> parameter.</p>

SELECT * FROM get_tickets_count_org
WITH(
	  organization_id='123'
)

SQL Server

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

Read tickets count for organization

<p>Reads the approximate count of tickets for a specific organization. This example demonstrates using the <code>get_tickets_count_org</code> endpoint with the <code>organization_id</code> parameter.</p>

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM get_tickets_count_org
WITH(
	  organization_id=''123''
)';

EXEC (@MyQuery) AT [LS_TO_ZENDESK_IN_GATEWAY];