{"id":132,"date":"2015-10-27T20:18:41","date_gmt":"2015-10-27T20:18:41","guid":{"rendered":"http:\/\/zappysys.com\/blog\/?p=132"},"modified":"2026-03-11T00:31:26","modified_gmt":"2026-03-11T00:31:26","slug":"read-zendesk-data-in-ssis-call-rest-api","status":"publish","type":"post","link":"https:\/\/zappysys.com\/blog\/read-zendesk-data-in-ssis-call-rest-api\/","title":{"rendered":"How to read Zendesk data in SSIS with REST API"},"content":{"rendered":"<h2>Introduction<\/h2>\n<div class=\"su-note\"  style=\"border-color:#e5de9d;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#FFF8B7;border-color:#ffffff;color:#333333;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><strong>UPDATE:<\/strong>\u00a0ZappySys has released a brand new\u00a0<a target=\"_blank\" rel=\"noopener\">Zendesk Online connector,<\/a>\u00a0which makes it much simpler to\u00a0<strong>read\/write Zendesk Data in SSIS<\/strong> compared to the steps listed in this article. You can still use the steps from this article, but if you are new to APIs or want to avoid the learning curve, use a newer approach.<\/p>\n<\/div><\/div>\n<p><a href=\"\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/zendesk-api-integration.png\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-1628 alignleft\" src=\"\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/zendesk-api-integration.png\" alt=\"\" width=\"126\" height=\"126\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/zendesk-api-integration.png 200w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/zendesk-api-integration-150x150.png 150w\" sizes=\"(max-width: 126px) 100vw, 126px\" \/><\/a><a href=\"http:\/\/zendesk.com\">Zendesk<\/a> is one of the most popular customer service platforms available today.\u00a0<span style=\"box-sizing: border-box; margin: 0px; padding: 0px;\"><a href=\"https:\/\/developer.zendesk.com\/rest_api\/docs\/support\/introduction\" target=\"_blank\" rel=\"noopener\">Zendesk offers a REST API<\/a> to interact with its cloud-based service programmatically (to manage or read data).<\/span> The problem is that not everyone is a programmer, and not everyone has time to learn how to write C# or JAVA code to access a REST API.<\/p>\n<p>In this article, you will learn how to get Zendesk data using the\u00a0<a target=\"_blank\" rel=\"noopener\">SSIS JSON Source (REST API Connector).<\/a> This connector allows you to read Zendesk data in SSIS using REST API Calls without any scripting\/programming.\u00a0<span style=\"box-sizing: border-box; margin: 0px; padding: 0px;\">Techniques mentioned in this article can also be used to consume data from other services (e.g.,\u00a0<a target=\"_blank\" rel=\"noopener\">read data from Twitter<\/a>).<\/span>\u00a0In this article, you will see step-by-step instructions to read Zendesk ticket information and load it into on-premises SQL Server.<\/p>\n<p>Also, check our other article\u00a0<span style=\"box-sizing: border-box; margin: 0px; padding: 0px;\">on\u00a0<a target=\"_blank\" rel=\"noopener\">how<\/a><\/span><a href=\"\/\/zappysys.com\/blog\/call-zendesk-rest-api-ssis-create-new-ticket\/\" target=\"_blank\" rel=\"noopener\"> to call the Zendesk REST API to create a new ticket<\/a>.<\/p>\n<h2>Different methods for Zendesk REST API Access<\/h2>\n<p>Zendesk allows you to access its data in three different ways.<\/p>\n<ol>\n<li>REST API access using OAuth Access Token<\/li>\n<li>REST API access using API Token<\/li>\n<li>REST API access using Basic Authentication (Use userid (e.g., email) and Password)<\/li>\n<\/ol>\n<p>Each method has pros and cons. The simplest method is the third, which is easy to use but requires passing your account password with each call. The second method is also easy to use but requires an additional step to create an access token. The first method is the most secure, but it has a few extra steps compared to the other methods.<\/p>\n<h2><span id=\"Prerequisite\">Prerequisite<\/span><\/h2>\n<p>Before you can finish the tasks explained in this article, you have to finish the following steps. This article assumes you have basic knowledge of SSIS (SQL Server Integration Services)<\/p>\n<ol>\n<li>Make sure you have the SSIS designer installed. Sometimes it&#8217;s referred to as BIDS or SSDT (<a href=\"https:\/\/msdn.microsoft.com\/en-us\/mt186501\" target=\"_blank\" rel=\"noopener\">Get from here)<\/a><\/li>\n<li><a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/\" target=\"_blank\" rel=\"noopener\">Download SSIS PowerPack<\/a>\u00a0(FREE Trial &#8211; 30 days).<\/li>\n<li>Optional \u2013 Another very useful Free tool is Fiddler. You can use it to see raw request\/response (<a href=\"https:\/\/zappysys.com\/blog\/how-to-use-fiddler-to-analyze-http-web-requests\/\" target=\"_blank\" rel=\"noopener\">Check this article<\/a>)<\/li>\n<\/ol>\n<h2>Method-1: Zendesk API Access using OAuth in SSIS<\/h2>\n<p>To read about the OAuth Method, <a href=\"https:\/\/zappysys.com\/blog\/configure-zendesk-oauth-application-for-rest-api-call\/\" target=\"_blank\" rel=\"noopener\">click here<\/a><\/p>\n<h2>Method-2: Zendesk API Access using Token in SSIS<\/h2>\n<p>Now let&#8217;s look at the second method for accessing Zendesk data using SSIS.<\/p>\n<h3>Create Token in Zendesk Portal for REST API Access<\/h3>\n<ol>\n<li>Log in to your account https:\/\/{{your-subdomain}}.zendesk.com\/login and then click on the settings icon<\/li>\n<li>On the next page, click on the API link<\/li>\n<li>On the API page, scroll to the API Access Tokens section. Make sure the <strong>Token Access<\/strong> method is checked.<\/li>\n<li>Click on the &#8221; add new token hyperlink. Once prompted, give a name to the Token token (this is just a label)<\/li>\n<li>Once the above steps are done, a token should be created and listed under your API Access page. The token will be used as your Password to access the REST API (will be shown in the next section). For more information, check this link &gt;&gt;&gt; \u00a0<a href=\"https:\/\/support.zendesk.com\/hc\/en-us\/articles\/226022787-Generating-a-new-API-token-\" target=\"_blank\" rel=\"noopener\">How to generate a token for ZenDesk API Call<\/a>.\n<div id=\"attachment_11852\" style=\"width: 993px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/Create-new-Zendesk-REST-API-Access-Token.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-11852\" class=\"size-full wp-image-11852\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/Create-new-Zendesk-REST-API-Access-Token.png\" alt=\"\" width=\"983\" height=\"701\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/Create-new-Zendesk-REST-API-Access-Token.png 983w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/Create-new-Zendesk-REST-API-Access-Token-300x214.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/Create-new-Zendesk-REST-API-Access-Token-768x548.png 768w\" sizes=\"(max-width: 983px) 100vw, 983px\" \/><\/a><p id=\"caption-attachment-11852\" class=\"wp-caption-text\">Create a new Zendesk REST API Access Token<\/p><\/div><\/li>\n<\/ol>\n<h3>Configure SSIS HTTP Connection<\/h3>\n<p>Perform the following steps to extract data from Zendesk and load it into SQL Server. The steps below assume that you are using the API Token method (#2 from the supported methods to call the Zendesk API). This is better than using Userid and Password.<\/p>\n<ol>\n<li>Open a new SSIS Project.<\/li>\n<li>First of all, drag and drop the Data Flow Task from the SSIS Toolbox and double-click it to edit.\n<div class=\"mceTemp\"><\/div>\n<div id=\"attachment_11784\" style=\"width: 485px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2026\/02\/Drag-and-drop-Data-flow.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-11784\" class=\"size-full wp-image-11784\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2026\/02\/Drag-and-drop-Data-flow.png\" alt=\"\" width=\"475\" height=\"178\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2026\/02\/Drag-and-drop-Data-flow.png 475w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2026\/02\/Drag-and-drop-Data-flow-300x112.png 300w\" sizes=\"(max-width: 475px) 100vw, 475px\" \/><\/a><p id=\"caption-attachment-11784\" class=\"wp-caption-text\">Drag and drop Data flow.w<\/p><\/div><\/li>\n<li>From the SSIS toolbox, drag and drop the\u00a0<a target=\"_blank\" rel=\"noopener\">ZS JSON Source<\/a> onto the data flow designer surface, then double-click it to edit.\n<div id=\"attachment_11533\" style=\"width: 553px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/09\/ssis-json-source-adapter-drag.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-11533\" class=\"size-full wp-image-11533\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/09\/ssis-json-source-adapter-drag.png\" alt=\"\" width=\"543\" height=\"146\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/09\/ssis-json-source-adapter-drag.png 543w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/09\/ssis-json-source-adapter-drag-300x81.png 300w\" sizes=\"(max-width: 543px) 100vw, 543px\" \/><\/a><p id=\"caption-attachment-11533\" class=\"wp-caption-text\">SSIS JSON Source &#8211; Drag and Drop<\/p><\/div>\n<div class=\"mceTemp\"><\/div>\n<\/li>\n<li>From the AccessMode dropdown [<strong>Url From Connection<\/strong>]<\/li>\n<li>Assume you want to extract all tickets from Zendesk, then enter the following URL (in the screenshot, we appended?page=1, which is optional)\n<pre class=\"\">https:\/\/YOUR_SUB_DOMAIN.zendesk.com\/api\/v2\/tickets.json<\/pre>\n<\/li>\n<li>Check the <strong>Use Credentials<\/strong> option and select New ZS-HTTP connection. When prompted<br \/>\nFor Credential Type: select <strong>Basic Authentication<\/strong> \u00a0(Use of UserID and Token ).<br \/>\nFor Web URL: Enter any URL (This will be ignored anyway because the URL entered on the JSON Source UI will be used)<br \/>\nFor user name : enter <strong>YOUR_EMAIL\/token \u00a0(e.g. bob@mycompany.com\/token)<br \/>\n<\/strong>For Password: enteToken token obtained from the Admin console &gt; API section. For more information, check this link &gt;&gt;&gt; \u00a0<a href=\"https:\/\/support.zendesk.com\/hc\/en-us\/articles\/226022787-Generating-a-new-API-token-\" target=\"_blank\" rel=\"noopener\">How to generate a token for ZenDesk API Call<\/a>.<br \/>\n<div class=\"su-note\"  style=\"border-color:#e5e5c6;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#ffffe0;border-color:#ffffff;color:#333333;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\">NOTE: Appending \/token command in Userid will allow us to pass the token rather than the Password of that account. This approach is more secure because you can disable the Token at any time without deactivating the user account. If you want to access data using your userid and Password rather than a token, then do not use <strong>\/token<\/strong>\u00a0after your email. By default, uToken Token and the use of Password are not allowed unless you enable these methods from the Admin console (See above section)<\/div><\/div>\n<div class=\"mceTemp\"><\/div>\n<div id=\"attachment_11844\" style=\"width: 838px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/Configure-SSIS-HTTP-Connection-Use-Zendesk-Token-to-Call-REST-API.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-11844\" class=\"size-full wp-image-11844\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/Configure-SSIS-HTTP-Connection-Use-Zendesk-Token-to-Call-REST-API.png\" alt=\"\" width=\"828\" height=\"745\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/Configure-SSIS-HTTP-Connection-Use-Zendesk-Token-to-Call-REST-API.png 828w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/Configure-SSIS-HTTP-Connection-Use-Zendesk-Token-to-Call-REST-API-300x270.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/Configure-SSIS-HTTP-Connection-Use-Zendesk-Token-to-Call-REST-API-768x691.png 768w\" sizes=\"(max-width: 828px) 100vw, 828px\" \/><\/a><p id=\"caption-attachment-11844\" class=\"wp-caption-text\">Configure SSIS HTTP Connection &#8211; Use Zendesk Token to Call REST API<\/p><\/div><\/li>\n<\/ol>\n<h3>Adding Retry Settings for HTTP or OAuth connection<\/h3>\n<p>Zendesk enforces an API rate limit, which means you cannot issue too many API calls within a given time frame. <a href=\"https:\/\/developer.zendesk.com\/rest_api\/docs\/support\/introduction#rate-limits\" target=\"_blank\" rel=\"noopener\">Check this document<\/a> for exact information.<\/p>\n<p>ZappySys provides API retry settings on both the OAuth Connection and the HTTP Connection. For Zendesk, you can retry on a specific status code <strong>429<\/strong><\/p>\n<ol>\n<li>Open connection manager UI<\/li>\n<li>Go to the Retry-Settings page<\/li>\n<li>Select <strong>Retry web error on matching response status code<\/strong>.<\/li>\n<li>Enter <strong>429<\/strong> for the status code<\/li>\n<li>Check <strong>multiple wait times<\/strong><\/li>\n<li>In the wait time, enter <strong>5000<\/strong> (wait 5 seconds or multiple of 5 seconds)<\/li>\n<li>Set the max retry count to <strong>6. <\/strong>See the example (It&#8217;s not for Zendesk, but will give you an idea)\n<div id=\"attachment_11847\" style=\"width: 667px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/OAuth-connection-Retry-Options.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-11847\" class=\"size-full wp-image-11847\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/OAuth-connection-Retry-Options.png\" alt=\"\" width=\"657\" height=\"604\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/OAuth-connection-Retry-Options.png 657w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/OAuth-connection-Retry-Options-300x276.png 300w\" sizes=\"(max-width: 657px) 100vw, 657px\" \/><\/a><p id=\"caption-attachment-11847\" class=\"wp-caption-text\">OAuth connection &#8211; Retry Options<\/p><\/div><\/li>\n<\/ol>\n<h3>Configure Zendesk API Pagination and Filter for SSIS JSON Source<\/h3>\n<ol>\n<li>Now click [Select Filter], select the tickets node (see the array icon), and click OK. It will generate the following Filter Expression to extract all records found under the tickets array node (e.g., tickets : [ {&#8230;} , {&#8230;} &#8230; ] )\n<pre class=\"\">$.tickets[*]\r\n<\/pre>\n<div class=\"mceTemp\"><\/div>\n<div id=\"attachment_11853\" style=\"width: 838px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/Select-Filter-Extract-Data-from-Zendesk-API-Response-Read-Ticket.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-11853\" class=\"size-full wp-image-11853\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/Select-Filter-Extract-Data-from-Zendesk-API-Response-Read-Ticket.png\" alt=\"\" width=\"828\" height=\"745\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/Select-Filter-Extract-Data-from-Zendesk-API-Response-Read-Ticket.png 828w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/Select-Filter-Extract-Data-from-Zendesk-API-Response-Read-Ticket-300x270.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/Select-Filter-Extract-Data-from-Zendesk-API-Response-Read-Ticket-768x691.png 768w\" sizes=\"(max-width: 828px) 100vw, 828px\" \/><\/a><p id=\"caption-attachment-11853\" class=\"wp-caption-text\">Select Filter &#8211; Extract Data from Zendesk API Response (Read Ticket)<\/p><\/div><\/li>\n<li>N, let&#8217;sts configure pagination. By default, Zendesk API doesn&#8217;t return all records, so you have to specify pagination as below. Click on the <strong>Pagination<\/strong> Tab. Enter <em>$.next_page<\/em> for Next URL attribute as below (you can also Browse Path)\n<div id=\"attachment_11854\" style=\"width: 841px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/SSIS-JSON-Source-Zendesk-Pagination.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-11854\" class=\"size-full wp-image-11854\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/SSIS-JSON-Source-Zendesk-Pagination.png\" alt=\"\" width=\"831\" height=\"747\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/SSIS-JSON-Source-Zendesk-Pagination.png 831w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/SSIS-JSON-Source-Zendesk-Pagination-300x270.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/SSIS-JSON-Source-Zendesk-Pagination-768x690.png 768w\" sizes=\"(max-width: 831px) 100vw, 831px\" \/><\/a><p id=\"caption-attachment-11854\" class=\"wp-caption-text\">SSIS JSON Source Zendesk Pagination<\/p><\/div><\/li>\n<li>Now time to click <strong>Preview. <\/strong>If\u00a0you followed everything correctly, then when you click the <strong>Preview<\/strong> Button, you should see some data in the preview (assuming you have at least one ticket).\n<div class=\"mceTemp\"><\/div>\n<div id=\"attachment_11850\" style=\"width: 840px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/SSIS-JSON-Source-Data-Preview-Zendesk-REST-API-Call-to-extract-tickets.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-11850\" class=\"size-full wp-image-11850\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/SSIS-JSON-Source-Data-Preview-Zendesk-REST-API-Call-to-extract-tickets.png\" alt=\"\" width=\"830\" height=\"747\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/SSIS-JSON-Source-Data-Preview-Zendesk-REST-API-Call-to-extract-tickets.png 830w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/SSIS-JSON-Source-Data-Preview-Zendesk-REST-API-Call-to-extract-tickets-300x270.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/SSIS-JSON-Source-Data-Preview-Zendesk-REST-API-Call-to-extract-tickets-768x691.png 768w\" sizes=\"(max-width: 830px) 100vw, 830px\" \/><\/a><p id=\"caption-attachment-11850\" class=\"wp-caption-text\">SSIS JSON Source &#8211; Data Preview &#8211; Zendesk REST API Call to extract tickets<\/p><\/div><\/li>\n<li>Now click the <strong>Columns tab<\/strong> to review data types (you can change the default length and check the Lock option on the right side). This change is needed because the datatype guess happens based on the design-time setting (only 300 rows scanned by default). At runtime, if you get a truncation-related error, then copy the error message into Notepad to get the exact steps and column name that caused the error. If you need a length greater than 4000 chars, use the DT_NTEXT data type instead (change the datatype and click the column name cell on the right to save the change).<\/li>\n<li>Click <strong>OK<\/strong> to save UI<\/li>\n<\/ol>\n<h3>How to extract Zendesk data using Incremental API<\/h3>\n<p>There will be a time when you need to extract data incrementally (i.e., Extract only the changed data since the last load). Zendesk API supports many <a href=\"https:\/\/developer.zendesk.com\/rest_api\/docs\/support\/incremental_export\" target=\"_blank\" rel=\"noopener\">Incremental API endpoints<\/a>. If you are using this endpoint, you have to make sure of a few things.<\/p>\n<ul>\n<li>For the OAuth connection method, make sure the <span class=\"lang:default highlight:0 decode:true crayon-inline\">read<\/span>\u00a0 scope is included ( <span class=\"lang:default highlight:0 decode:true crayon-inline\">tickets:read<\/span>\u00a0 won&#8217;t work, so just use <span class=\"lang:default highlight:0 decode:true crayon-inline\">read<\/span>\u00a0)<\/li>\n<li>Your URL must include \/incremental path before the API type, and you must include start_time for the extract in\u00a0<a href=\"https:\/\/www.epochconverter.com\/\" target=\"_blank\" rel=\"noopener\">Unix Epoch Format<\/a>.\u00a0 The following example will pull records modified after\n<pre class=\"lang:default highlight:0 decode:true\">https:\/\/zappysys.zendesk.com\/api\/v2\/incremental\/tickets.json?start_time=1514764800<\/pre>\n<\/li>\n<li>On the pagination tab, you have to configure the following settings\n<ul>\n<li>Set Next Link as <span class=\"lang:default highlight:0 decode:true crayon-inline \">$.next_link<\/span><\/li>\n<li>Set the Stop Indicator attribute as <span class=\"lang:default highlight:0 decode:true crayon-inline \">$.count<\/span><\/li>\n<li>Set the Stop Indicator Value as <span class=\"lang:default highlight:0 decode:true crayon-inline\">regex=^\\d{1,3}$<\/span>\u00a0 Notice that using <strong>regex=<\/strong> prefix treats your end indicator value as a pattern check.<strong>&#8212;OR&#8212;<\/strong><\/li>\n<li>Set the Stop Indicator attribute as <span class=\"lang:default decode:true crayon-inline \">$.end_of_stream<\/span>\u00a0 \u00a0and the Stop indicator value as <span class=\"lang:default decode:true crayon-inline \"><span class=\"lang:default decode:true crayon-inline \">true<br \/>\n<\/span><\/span><\/p>\n<div id=\"attachment_11848\" style=\"width: 838px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/Pagination-for-Zendesk-Incremental-API-Next-Link-and-Last-Page-detection-using-Stop-Indicator-Regular-Expression.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-11848\" class=\"size-full wp-image-11848\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/Pagination-for-Zendesk-Incremental-API-Next-Link-and-Last-Page-detection-using-Stop-Indicator-Regular-Expression.png\" alt=\"\" width=\"828\" height=\"745\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/Pagination-for-Zendesk-Incremental-API-Next-Link-and-Last-Page-detection-using-Stop-Indicator-Regular-Expression.png 828w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/Pagination-for-Zendesk-Incremental-API-Next-Link-and-Last-Page-detection-using-Stop-Indicator-Regular-Expression-300x270.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/Pagination-for-Zendesk-Incremental-API-Next-Link-and-Last-Page-detection-using-Stop-Indicator-Regular-Expression-768x691.png 768w\" sizes=\"(max-width: 828px) 100vw, 828px\" \/><\/a><p id=\"caption-attachment-11848\" class=\"wp-caption-text\">Pagination for Zendesk Incremental API &#8211; Next Link and Last Page detection using Stop Indicator Regular Expression<\/p><\/div><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Here is a simple SQL query to convert date\/time to Unix time<\/p>\n<pre class=\"lang:tsql decode:true \">select DATEDIFF(SECOND,'1970-01-01', GETUTCDATE() )\r\n\r\nselect DATEDIFF(SECOND,'1970-01-01', LastExtractDate ) as LastExtractDateAsUnix From dbo.ExtractStatus Where ExtractName='ZendeskExtract'\r\n\r\n<\/pre>\n<p>For C# code in the SSIS Script Task, you can use something like the following:<\/p>\n<pre class=\"lang:default highlight:0 decode:true\">Int32 unixTimestamp = (Int32)(DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1))).TotalSeconds;<\/pre>\n<p>Assuming you extracted Date\/Time from the database and saved it to some SSIS Variable called User::varLastExtract. Now we like to convert that to Unix format using C#.<\/p>\n<p>We assume you have created the following variables in the SSIS Package. Also, you have set varLastExtract to a date\/time value you want to convert.<\/p>\n<pre class=\"lang:default highlight:0 decode:true\">User::varLastExtractTimeUnix\u00a0 (Int32)\r\nUser::varLastExtractTime (DateTime)<\/pre>\n<p>Use the steps below. to convert date time to Unix format in C#<\/p>\n<ol>\n<li>Drag and drop Script Task in SSIS designer<\/li>\n<li>Add both variable names in Read\/Write Variable List (e.g., User::varLastExtractTimeUnix, User::varLastTimeExtract ).<\/li>\n<li>Edit Script<\/li>\n<li>Enter something like below\n<pre class=\"lang:default highlight:0 decode:true\">DateTime dtUtc= Convert.ToDateTime( Dts.Variables[\"User::varLastExtractTime\"].Value ).ToUniversalTime();\r\nDts.Variables[\"User::varLastExtractTimeUnix\"].Value = (Int32)(dtUtc.Subtract(new DateTime(1970, 1, 1))).TotalSeconds;<\/pre>\n<\/li>\n<\/ol>\n<p>Now you can use this variable in your JSON Source URL to make things dynamic.<\/p>\n<pre class=\"lang:default highlight:0 decode:true \">https:\/\/zappysys.zendesk.com\/api\/v2\/incremental\/tickets.json?start_time={{User::varLastExtractTimeUnix}}<\/pre>\n<h3>Handling duplicate data during incremental load (DISTINCT)<\/h3>\n<p>As per\u00a0<a href=\"https:\/\/developer.zendesk.com\/rest_api\/docs\/support\/incremental_export#excluding-pagination-duplicates\" target=\"_blank\" rel=\"noopener\">this Zendesk document,<\/a> they may include the last row of the previous page on the next page if the update timestamp. It is possible to have duplicate rows in your staging table. <span style=\"box-sizing: border-box; margin: 0px; padding: 0px;\">You can easily avoid this by using\u00a0the <strong>DISTINCT<\/strong> keyword or another SQL query to remove duplicates.<\/span>\u00a0Make sure not to include\u00a0<strong>P_next_page<\/strong> and <strong>P_count,<\/strong> as they can differ when duplicate rows are detected at page boundaries.<\/p>\n<pre class=\"lang:tsql decode:true \">SELECT DISTINCT\u00a0\r\n--[P_next_page] --- Do NOT include this...\u00a0\r\n[P_previous_page]\r\n--,[P_count] --- Do NOT include this... \r\n,[url]\r\n,[id]\r\n,[external_id]\r\n,[via.channel]\r\n,[via.source.rel]\r\n\r\n,[assignee_id]\r\n......\r\n......\r\n......\r\n,[allow_attachments]\r\nFROM [dbo]._stgZendeskTickets<\/pre>\n<p>&nbsp;<\/p>\n<h3>Loading data from Zendesk to SQL Server using SSIS<\/h3>\n<ol>\n<li>Now, drag a new OLE DB Destination into the Data Flow Designer. Connect the JSON source with the destination. Now double-click Destination. At the destination, select connection manager (or create one), then click [New] next to the Table name dropdown. You will see default metadata for the table based on upstream columns. Notice how P_previous_link is 40 chars rather than 140. This can be edited in the source metadata under the Columns tab, as described in the previous step, so that Table datatypes are set correctly. Once you change the table name and datatypes, click OK to create the new table. Click on the <strong>Mapping<\/strong> Tab to map source columns to target columns. Once that&#8217;s done, click OK to save.\n<div id=\"attachment_11846\" style=\"width: 763px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/Load-Zendesk-Data-into-SQL-Server-Using-SSIS-JSON-Connector-REST-API.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-11846\" class=\"size-full wp-image-11846\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/Load-Zendesk-Data-into-SQL-Server-Using-SSIS-JSON-Connector-REST-API.png\" alt=\"\" width=\"753\" height=\"684\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/Load-Zendesk-Data-into-SQL-Server-Using-SSIS-JSON-Connector-REST-API.png 753w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/Load-Zendesk-Data-into-SQL-Server-Using-SSIS-JSON-Connector-REST-API-300x273.png 300w\" sizes=\"(max-width: 753px) 100vw, 753px\" \/><\/a><p id=\"caption-attachment-11846\" class=\"wp-caption-text\">Load Zendesk Data into SQL Server Using SSIS JSON Connector (REST API)<\/p><\/div><\/li>\n<li>Now execute the package. If you have multiple pages in response, you will notice several requests in the log (e.g., &amp;page=1 &#8230; &amp;page=2 &#8230;).<br \/>\n<div class=\"su-note\"  style=\"border-color:#e5e5c6;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#ffffe0;border-color:#ffffff;color:#333333;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\">NOTE: In below screenshot we used per_page=2 for example purpose only. In reality, make it bigger, e.g., per_page=100 or per_page=200, so you don&#8217;t hit the server too often. If you&#8217;re not sure, then exclude the per_page parameter from the URL to use the default setting.<\/div><\/div>\n<div id=\"attachment_11845\" style=\"width: 1099px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/Execute-SSIS-Package-Extract-data-from-Zendesk-and-load-into-SQL-Server.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-11845\" class=\"size-full wp-image-11845\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/Execute-SSIS-Package-Extract-data-from-Zendesk-and-load-into-SQL-Server.png\" alt=\"\" width=\"1089\" height=\"416\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/Execute-SSIS-Package-Extract-data-from-Zendesk-and-load-into-SQL-Server.png 1089w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/Execute-SSIS-Package-Extract-data-from-Zendesk-and-load-into-SQL-Server-300x115.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/Execute-SSIS-Package-Extract-data-from-Zendesk-and-load-into-SQL-Server-1024x391.png 1024w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/Execute-SSIS-Package-Extract-data-from-Zendesk-and-load-into-SQL-Server-768x293.png 768w\" sizes=\"(max-width: 1089px) 100vw, 1089px\" \/><\/a><p id=\"caption-attachment-11845\" class=\"wp-caption-text\">Execute SSIS Package &#8211; Extract data from Zendesk and load into SQL Server<\/p><\/div><\/li>\n<\/ol>\n<h2>Method-3: Zendesk API Access using Username and Password in SSIS (Basic Authentication)<\/h2>\n<p>This method is the same as the second method outlined in the previous section. Except for a few changes. When you create an HTTP Connection, use your Username (without appenTokentoken ). For the Password, use your account password (the same one you use to log in to the Zendesk portal)<\/p>\n<h2>Zendesk API Rate Limit (Throttling)<\/h2>\n<p>Zendesk may limit how many calls you can make per second, so make sure to slow down if you get errors about api rate limit. You can slow down by entering Wait time on the Throttling tab of JSON Source (100 means wait 100 ms after each Request &#8230; only useful if pagination is enabled)<\/p>\n<h2>Making things Dynamic (e.g., URL)<\/h2>\n<p>You can use SSIS variables in your URL to make it dynamic. See below<\/p>\n<pre class=\"\">https:\/\/mycompany.zendesk.com\/api\/v2\/items\/{{User::TicketNumber}}.json<\/pre>\n<h2>Dealing with common errors<\/h2>\n<p><span style=\"box-sizing: border-box; margin: 0px; padding: 0px;\">For detailed instructions to fix common metadata-related errors,\u00a0<a target=\"_blank\" rel=\"noopener\">read this article<\/a>.<\/span><\/p>\n<div id=\"attachment_11851\" style=\"width: 796px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/SSIS-PowerPack-Column-Metadata-Editor-i.e.-Change-DataType-Column-Length.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-11851\" class=\"size-full wp-image-11851\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/SSIS-PowerPack-Column-Metadata-Editor-i.e.-Change-DataType-Column-Length.png\" alt=\"\" width=\"786\" height=\"471\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/SSIS-PowerPack-Column-Metadata-Editor-i.e.-Change-DataType-Column-Length.png 786w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/SSIS-PowerPack-Column-Metadata-Editor-i.e.-Change-DataType-Column-Length-300x180.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/SSIS-PowerPack-Column-Metadata-Editor-i.e.-Change-DataType-Column-Length-768x460.png 768w\" sizes=\"(max-width: 786px) 100vw, 786px\" \/><\/a><p id=\"caption-attachment-11851\" class=\"wp-caption-text\">SSIS PowerPack &#8211; Column Metadata Editor (i.e., Change DataType, Column Length)<\/p><\/div>\n<div class=\"content_block\" id=\"custom_post_widget-1887\"><h3>Truncation related error<\/h3>\r\n<p style=\"text-align: justify;\">The most common error you may face when you run an SSIS package is truncation error. During the design time only 300 rows are scanned from a source (a file or a REST API call response) to detect datatypes but at runtime, it is likely you will retrieve far more records. So it is possible that you will get longer strings than initially expected.\u00a0For detailed instructions on how to fix common metadata related errors read an article \"<a href=\"\/\/zappysys.com\/blog\/handling-ssis-component-metadata-issues\/\" target=\"_blank\" rel=\"noopener\">How to handle SSIS errors (truncation, metadata issues)<\/a>\".<\/p>\r\n\r\n<h3>Authentication related error<\/h3>\r\nAnother frequent error you may get is an authentication error, which happens when you deploy\/copy a package to another machine and run it there. Check <a href=\"#Deployment_to_Production\">the paragraph below<\/a>\u00a0to see why it happens and how to solve this problem.<\/div>\n<h2>Deploy to production<\/h2>\n<div class=\"content_block\" id=\"custom_post_widget-1932\"><p style=\"text-align: justify;\">In SSIS package <a href=\"https:\/\/docs.microsoft.com\/en-us\/sql\/integration-services\/security\/access-control-for-sensitive-data-in-packages\" target=\"_blank\" rel=\"noopener\">sensitive data such as tokens and passwords are by default encrypted by SSIS<\/a> with your Windows account which you use to create a package.\u00a0So SSIS will fail to decrypt tokens\/passwords when you run it from another machine using another Windows account. To circumvent this when you are creating an SSIS package which uses authentication components (e.g. an <a href=\"https:\/\/zappysys.com\/onlinehelp\/ssis-powerpack\/scr\/ssis-oauth-connection-manager.htm\" target=\"_blank\" rel=\"noopener\">OAuth Connection Manager<\/a>\u00a0or an <a href=\"https:\/\/zappysys.com\/onlinehelp\/ssis-powerpack\/scr\/ssis-http-connection-manager.htm\" target=\"_blank\" rel=\"noopener\">HTTP Connection Manager<\/a> with credentials, etc.), consider using parameters\/variables to pass tokens\/passwords. In this way, you won\u2019t face authentication related errors when a package is deployed to a production server.<\/p>\r\n<p style=\"text-align: justify;\">Check our article on <a href=\"https:\/\/zappysys.com\/blog\/how-to-run-an-ssis-package-with-sensitive-data-on-sql-server\/\" target=\"_blank\" rel=\"noopener\">how to configure packages with sensitive data on your production or development server<\/a>.<\/p><\/div>\n<div class=\"content_block\" id=\"custom_post_widget-2021\"><h2>Things have gone bad: Error handling &amp; debugging<\/h2>\r\n<p style=\"text-align: justify;\">Incidentally, bad things can happen<i>. <\/i>A remote server may go offline or your server may go out of memory. In any case, you may want to know when that happens and take actions accordingly. For that purpose, you have to redirect bad rows to some other destination. For this example, we will take and use <em>Web API Destination<\/em>, but basically, you can use any SSIS component:<\/p>\r\n\r\n<h3>Handling errors<\/h3>\r\n<ol style=\"margin-left: 0;\">\r\n \t<li>Add a <em>Derived Column<\/em>\u00a0above <em>Web API Destination<\/em> with expression\u00a0<strong>\"(DT_WSTR,4000)ZS_JSON_OUT\"<\/strong>\u00a0and name it <strong>\"JsonAsString\"<\/strong>. This will let you see what JSON you are actually passing.<\/li>\r\n \t<li>Then add a database or file destination or use another\u00a0<em>Trash Destination<\/em>\u00a0for debugging purposes and redirect the bad rows (<span style=\"color: #d66565;\">red arrow<\/span>) from <em><em>Web API Destination <\/em><\/em>into it<em><em>. <\/em><\/em>Don't forget to set <span class=\"lang:default decode:true crayon-inline\">Redirect row<\/span>\u00a0option for both, <em>Error<\/em> and <em>Truncation<\/em> columns:<em><em>\r\n<\/em><\/em>\r\n<div class=\"wp-caption\">\r\n\r\n<a href=\"\/\/zappysys.com\/blog\/wp-content\/uploads\/2017\/06\/ssis-sql-server-to-elasticsearch-error-handling-redirecting-bad-rows.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1487 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2017\/06\/ssis-sql-server-to-elasticsearch-error-handling-redirecting-bad-rows.png\" alt=\"Redirect bad rows from &lt;em&gt;Web API Destination&lt;\/em&gt; to &lt;em&gt;Trash Destination&lt;\/em&gt; when load from SQL Server to Elasticsearch is failing. Add derived column JsonAsString to be able to read JSON you are using.\" width=\"739\" height=\"267\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2017\/06\/ssis-sql-server-to-elasticsearch-error-handling-redirecting-bad-rows.png 739w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2017\/06\/ssis-sql-server-to-elasticsearch-error-handling-redirecting-bad-rows-300x108.png 300w\" sizes=\"(max-width: 739px) 100vw, 739px\" \/><\/a>\r\n<p class=\"wp-caption-text\">Redirected failed requests from <em>Web API Destination<\/em> to a desired destination when loading from SQL Server to REST API Service is failing. Derived Column <em>JsonAsString<\/em> added to be able to read JSON which was passed to Elasticsearch<\/p>\r\n\r\n<\/div><\/li>\r\n \t<li>Finally, add a\u00a0<a href=\"https:\/\/technet.microsoft.com\/en-us\/library\/ms140318%28v=sql.90%29.aspx?f=255&amp;MSPPError=-2147217396\" target=\"_blank\" rel=\"noopener\"><em>Data Viewer<\/em><\/a> for the red path, if you want to debug the flow. You will be able to see URL, JSON and the error message for each record. You may want to copy-paste <em>ErrorMessage<\/em>\u00a0to <em>Notepad <\/em>if you want it to be more readable:\r\n<div class=\"wp-caption\">\r\n\r\n<a href=\"\/\/zappysys.com\/blog\/wp-content\/uploads\/2017\/06\/ssis-sql-server-to-elasticsearch-error-handling.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1494 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2017\/06\/ssis-sql-server-to-elasticsearch-error-handling.png\" alt=\"Use Data Viewer to view HTTP requests that failed to be fulfilled in Elasticsearch\" width=\"752\" height=\"280\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2017\/06\/ssis-sql-server-to-elasticsearch-error-handling.png 752w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2017\/06\/ssis-sql-server-to-elasticsearch-error-handling-300x112.png 300w\" sizes=\"(max-width: 752px) 100vw, 752px\" \/><\/a>\r\n<p class=\"wp-caption-text\">Use Data Viewer to view HTTP requests that failed to be fulfilled.<\/p>\r\n\r\n<\/div><\/li>\r\n<\/ol>\r\n<div class=\"su-note\" style=\"border-color: #e5dea5; border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px;\">\r\n<div class=\"su-note-inner su-clearfix\" style=\"background-color: #fff7b7; border-color: #fffdf1; color: #333333; border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px;\"><strong>NOTE<\/strong>: You can read more about redirecting rows in <a href=\"\/\/zappysys.com\/blog\/ssis-error-handling-in-data-flow-redirect-bad-rows\/\" target=\"_blank\" rel=\"noopener\">SSIS Error Handling (Redirect bad rows)<\/a> article.<\/div>\r\n<\/div>\r\n<h3>Debugging HTTP requests<\/h3>\r\n<p style=\"text-align: justify;\">A common thing you have to do when working with HTTP requests is to debug those requests; e.g. to check what headers, body or URL was passed.\u00a0<span id=\"Debug_Web_API_call_using_Fiddler\"><\/span>To test how things look behind the scenes we strongly suggest to use <a href=\"https:\/\/zappysys.com\/blog\/how-to-use-fiddler-to-analyze-http-web-requests\/\" target=\"_blank\" rel=\"noopener\">Fiddler<\/a>\u00a0- a popular web debugging tool.<\/p>\r\n<p style=\"text-align: justify;\">Inside it, you can double-click the URL entry (Right side) to see Request and Response Panels. The top panel is Request (URL, Headers, Body) and Bottom Panel is Response. For https:\/\/ (secure URL) make sure you enable HTTPS option in Fiddler (Tools &gt; Options &gt; HTTPS &gt; Check Decrypt https request):<\/p>\r\n\r\n<div id=\"attachment_2344\" class=\"wp-caption alignnone\">\r\n\r\n<a href=\"https:\/\/i1.wp.com\/zappysys.com\/blog\/wp-content\/uploads\/2016\/05\/ssis-rest-api-call-debug-via-fiddler.png?ssl=1\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2344 size-full\" style=\"border: 0px; max-width: 100%; height: auto; box-shadow: rgba(0, 0, 0, 0.176) 0px 1px 2px;\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2016\/05\/ssis-rest-api-call-debug-via-fiddler.png\" alt=\"Debugging Web API call using Fiddler in SSIS\" width=\"1287\" height=\"564\" data-attachment-id=\"2344\" data-permalink=\"https:\/\/zappysys.com\/blog\/pass-authorization-header-redirected-location\/ssis-rest-api-call-debug-via-fiddler\/#main\" data-orig-file=\"https:\/\/i1.wp.com\/zappysys.com\/blog\/wp-content\/uploads\/2016\/05\/ssis-rest-api-call-debug-via-fiddler.png?fit=1287%2C564&amp;ssl=1\" data-orig-size=\"1287,564\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ssis-rest-api-call-debug-via-fiddler\" data-image-description=\"&lt;p&gt;Debugging Web API call using Fiddler in SSIS&lt;\/p&gt; \" data-medium-file=\"https:\/\/i1.wp.com\/zappysys.com\/blog\/wp-content\/uploads\/2016\/05\/ssis-rest-api-call-debug-via-fiddler.png?fit=300%2C131&amp;ssl=1\" data-large-file=\"https:\/\/i1.wp.com\/zappysys.com\/blog\/wp-content\/uploads\/2016\/05\/ssis-rest-api-call-debug-via-fiddler.png?fit=720%2C316&amp;ssl=1\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2016\/05\/ssis-rest-api-call-debug-via-fiddler.png 1287w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2016\/05\/ssis-rest-api-call-debug-via-fiddler-300x131.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2016\/05\/ssis-rest-api-call-debug-via-fiddler-768x337.png 768w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2016\/05\/ssis-rest-api-call-debug-via-fiddler-1024x449.png 1024w\" sizes=\"(max-width: 1287px) 100vw, 1287px\" \/><\/a>\r\n<p class=\"wp-caption-text\">Debugging Web API call using Fiddler in SSIS<\/p>\r\n\r\n<\/div><\/div>\n<h2>Conclusion<\/h2>\n<p>In this post, you saw how easy it is to read data from Zendesk using the SSIS JSON Source (REST API Connector). <a href=\"\/\/zappysys.com\/products\/ssis-powerpack\/ssis-json-file-source\/\" target=\"_blank\" rel=\"noopener\">Click here to download<\/a> and try it yourself.<\/p>\n<p><strong>Keywords<\/strong><\/p>\n<p>Loading Zendesk data into SQL Server<br \/>\nHow to read Zendesk tickets in SSIS<br \/>\nCalling Zendesk REST API in SSIS<br \/>\nFetch Zendesk data using a REST API call in SSIS<br \/>\nExtract Zendesk data using a REST API call in SSIS<br \/>\nReading data from Zendesk using rest api call<br \/>\nPulling Zendesk tickets using rest api call<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Zendesk is one of the most popular customer service platforms available today.\u00a0Zendesk offers a REST API to interact with its cloud-based service programmatically (to manage or read data). The problem is that not everyone is a programmer, and not everyone has time to learn how to write C# or JAVA code to access a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1628,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[225,17],"tags":[215,232,6,160,161,3,12,4,50],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\r\n<title>How to read Zendesk data in SSIS with REST API | ZappySys Blog<\/title>\r\n<meta name=\"description\" content=\"Learn how to read Zendesk data using REST API in SSIS. In this example you will see how to get data from Zendesk and load into SQL Server.\" \/>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/zappysys.com\/blog\/read-zendesk-data-in-ssis-call-rest-api\/\" \/>\r\n<meta property=\"og:locale\" content=\"en_US\" \/>\r\n<meta property=\"og:type\" content=\"article\" \/>\r\n<meta property=\"og:title\" content=\"How to read Zendesk data in SSIS with REST API | ZappySys Blog\" \/>\r\n<meta property=\"og:description\" content=\"Learn how to read Zendesk data using REST API in SSIS. In this example you will see how to get data from Zendesk and load into SQL Server.\" \/>\r\n<meta property=\"og:url\" content=\"https:\/\/zappysys.com\/blog\/read-zendesk-data-in-ssis-call-rest-api\/\" \/>\r\n<meta property=\"og:site_name\" content=\"ZappySys Blog\" \/>\r\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/ZappySys\/\" \/>\r\n<meta property=\"article:published_time\" content=\"2015-10-27T20:18:41+00:00\" \/>\r\n<meta property=\"article:modified_time\" content=\"2026-03-11T00:31:26+00:00\" \/>\r\n<meta property=\"og:image\" content=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/zendesk-api-integration.png\" \/>\r\n\t<meta property=\"og:image:width\" content=\"200\" \/>\r\n\t<meta property=\"og:image:height\" content=\"200\" \/>\r\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\r\n<meta name=\"author\" content=\"ZappySys\" \/>\r\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\r\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/zappysys\/\" \/>\r\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ZappySys\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"13 minutes\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/zappysys.com\/blog\/read-zendesk-data-in-ssis-call-rest-api\/\",\"url\":\"https:\/\/zappysys.com\/blog\/read-zendesk-data-in-ssis-call-rest-api\/\",\"name\":\"How to read Zendesk data in SSIS with REST API | ZappySys Blog\",\"isPartOf\":{\"@id\":\"https:\/\/zappysys.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/zappysys.com\/blog\/read-zendesk-data-in-ssis-call-rest-api\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/zappysys.com\/blog\/read-zendesk-data-in-ssis-call-rest-api\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/zendesk-api-integration.png\",\"datePublished\":\"2015-10-27T20:18:41+00:00\",\"dateModified\":\"2026-03-11T00:31:26+00:00\",\"author\":{\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/2756c237457fbc95d82cb38962f81f82\"},\"description\":\"Learn how to read Zendesk data using REST API in SSIS. In this example you will see how to get data from Zendesk and load into SQL Server.\",\"breadcrumb\":{\"@id\":\"https:\/\/zappysys.com\/blog\/read-zendesk-data-in-ssis-call-rest-api\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/zappysys.com\/blog\/read-zendesk-data-in-ssis-call-rest-api\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/zappysys.com\/blog\/read-zendesk-data-in-ssis-call-rest-api\/#primaryimage\",\"url\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/zendesk-api-integration.png\",\"contentUrl\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/zendesk-api-integration.png\",\"width\":200,\"height\":200},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/zappysys.com\/blog\/read-zendesk-data-in-ssis-call-rest-api\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/zappysys.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to read Zendesk data in SSIS with REST API\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/zappysys.com\/blog\/#website\",\"url\":\"https:\/\/zappysys.com\/blog\/\",\"name\":\"ZappySys Blog\",\"description\":\"SSIS \/ ODBC Drivers \/ API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/zappysys.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/2756c237457fbc95d82cb38962f81f82\",\"name\":\"ZappySys\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5c9be148088ba9b8af8e955c5f7c22b5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5c9be148088ba9b8af8e955c5f7c22b5?s=96&d=mm&r=g\",\"caption\":\"ZappySys\"},\"sameAs\":[\"http:\/\/www.zappysys.com\/\",\"https:\/\/www.facebook.com\/ZappySys\/\",\"https:\/\/twitter.com\/https:\/\/twitter.com\/zappysys\/\"],\"url\":\"https:\/\/zappysys.com\/blog\/author\/admin\/\"}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to read Zendesk data in SSIS with REST API | ZappySys Blog","description":"Learn how to read Zendesk data using REST API in SSIS. In this example you will see how to get data from Zendesk and load into SQL Server.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/zappysys.com\/blog\/read-zendesk-data-in-ssis-call-rest-api\/","og_locale":"en_US","og_type":"article","og_title":"How to read Zendesk data in SSIS with REST API | ZappySys Blog","og_description":"Learn how to read Zendesk data using REST API in SSIS. In this example you will see how to get data from Zendesk and load into SQL Server.","og_url":"https:\/\/zappysys.com\/blog\/read-zendesk-data-in-ssis-call-rest-api\/","og_site_name":"ZappySys Blog","article_author":"https:\/\/www.facebook.com\/ZappySys\/","article_published_time":"2015-10-27T20:18:41+00:00","article_modified_time":"2026-03-11T00:31:26+00:00","og_image":[{"width":200,"height":200,"url":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/zendesk-api-integration.png","type":"image\/png"}],"author":"ZappySys","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/zappysys\/","twitter_misc":{"Written by":"ZappySys","Est. reading time":"13 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/zappysys.com\/blog\/read-zendesk-data-in-ssis-call-rest-api\/","url":"https:\/\/zappysys.com\/blog\/read-zendesk-data-in-ssis-call-rest-api\/","name":"How to read Zendesk data in SSIS with REST API | ZappySys Blog","isPartOf":{"@id":"https:\/\/zappysys.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/zappysys.com\/blog\/read-zendesk-data-in-ssis-call-rest-api\/#primaryimage"},"image":{"@id":"https:\/\/zappysys.com\/blog\/read-zendesk-data-in-ssis-call-rest-api\/#primaryimage"},"thumbnailUrl":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/zendesk-api-integration.png","datePublished":"2015-10-27T20:18:41+00:00","dateModified":"2026-03-11T00:31:26+00:00","author":{"@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/2756c237457fbc95d82cb38962f81f82"},"description":"Learn how to read Zendesk data using REST API in SSIS. In this example you will see how to get data from Zendesk and load into SQL Server.","breadcrumb":{"@id":"https:\/\/zappysys.com\/blog\/read-zendesk-data-in-ssis-call-rest-api\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zappysys.com\/blog\/read-zendesk-data-in-ssis-call-rest-api\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zappysys.com\/blog\/read-zendesk-data-in-ssis-call-rest-api\/#primaryimage","url":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/zendesk-api-integration.png","contentUrl":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/10\/zendesk-api-integration.png","width":200,"height":200},{"@type":"BreadcrumbList","@id":"https:\/\/zappysys.com\/blog\/read-zendesk-data-in-ssis-call-rest-api\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zappysys.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to read Zendesk data in SSIS with REST API"}]},{"@type":"WebSite","@id":"https:\/\/zappysys.com\/blog\/#website","url":"https:\/\/zappysys.com\/blog\/","name":"ZappySys Blog","description":"SSIS \/ ODBC Drivers \/ API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zappysys.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/2756c237457fbc95d82cb38962f81f82","name":"ZappySys","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5c9be148088ba9b8af8e955c5f7c22b5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5c9be148088ba9b8af8e955c5f7c22b5?s=96&d=mm&r=g","caption":"ZappySys"},"sameAs":["http:\/\/www.zappysys.com\/","https:\/\/www.facebook.com\/ZappySys\/","https:\/\/twitter.com\/https:\/\/twitter.com\/zappysys\/"],"url":"https:\/\/zappysys.com\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/132"}],"collection":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/comments?post=132"}],"version-history":[{"count":29,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/132\/revisions"}],"predecessor-version":[{"id":11855,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/132\/revisions\/11855"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/media\/1628"}],"wp:attachment":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/media?parent=132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/categories?post=132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/tags?post=132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}