{"id":2625,"date":"2018-02-16T04:21:06","date_gmt":"2018-02-16T04:21:06","guid":{"rendered":"https:\/\/zappysys.com\/blog\/?p=2625"},"modified":"2025-12-11T11:21:18","modified_gmt":"2025-12-11T11:21:18","slug":"read-write-zoho-crm-data-using-ssis-rest-api-call","status":"publish","type":"post","link":"https:\/\/zappysys.com\/blog\/read-write-zoho-crm-data-using-ssis-rest-api-call\/","title":{"rendered":"Read \/ Write Zoho CRM data using SSIS REST API Call"},"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 <a href=\"https:\/\/zappysys.com\/api\/integration-hub\/zoho-crm-connector\/\">API Connector for Zoho CRM Online<\/a> which makes it much simpler to\u00a0<strong>Read\/Write Zoho CRM Data in SSIS<\/strong> compared to the steps listed in this article. You can still use steps from this article but if you are new to API or want to avoid learning curve with API then use newer approach.<\/p>\n<p>Please visit <a href=\"https:\/\/zappysys.com\/api\/integration-hub\/\">this page to see all<\/a>\u00a0Pre-Configured ready to use API connectors which you can use in <a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-api-source\/\">SSIS API Source<\/a> \/ <a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-api-destination\/\">SSIS API Destination<\/a> OR\u00a0<a href=\"https:\/\/zappysys.com\/products\/odbc-powerpack\/odbc-api-driver\/\">API ODBC Driver<\/a> (for non-SSIS Apps such as Excel, Power BI, Informatica).<\/p>\n<\/div><\/div>\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/zoho-crm-api-integration-logo.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-2655 alignleft\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/zoho-crm-api-integration-logo.jpg\" alt=\"\" width=\"147\" height=\"147\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/zoho-crm-api-integration-logo.jpg 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/zoho-crm-api-integration-logo-150x150.jpg 150w\" sizes=\"(max-width: 147px) 100vw, 147px\" \/><\/a>In this post, you will learn how to read \/ write Zoho CRM data using SSIS (Drag and drop approach without any coding).\u00a0 We will use\u00a0<a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-json-file-source\/\" target=\"_blank\" rel=\"noopener\">SSIS JSON\/ REST API Source<\/a>\u00a0to extract data from Zoho API and use\u00a0<a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-web-api-destination-connector\/\" target=\"_blank\" rel=\"noopener\">SSIS Web API Destination<\/a>\u00a0to write data to Zoho.<\/p>\n<p>We will look at step-by-step instructions to read Zoho CRM data (e.g. Leads, Accounts, Contacts) and load into SQL Server Database Table. In the next section, we will look at Write scenario too.<\/p>\n<p>Now let\u2019s look at step-by-step approach to call Zoho API\u00a0 using SSIS.<\/p>\n<p>&nbsp;<\/p>\n<div class=\"content_block\" id=\"custom_post_widget-2523\"><h2><span id=\"Prerequisites\">Prerequisites<\/span><\/h2>\r\nBefore we perform the steps listed in this article, you will need to make sure the following prerequisites are met:\r\n<ol style=\"margin-left: 1.5em;\">\r\n \t<li><abbr title=\"SQL Server Integration Services\">SSIS<\/abbr> designer installed.\u00a0Sometimes it is referred to as <abbr title=\"Business Intelligence Development Studio\">BIDS<\/abbr> or <abbr title=\"SQL Server Data Tools\">SSDT<\/abbr> (<a href=\"https:\/\/docs.microsoft.com\/en-us\/sql\/ssdt\/download-sql-server-data-tools-ssdt\" target=\"_blank\" rel=\"noopener\">download it from the Microsoft site<\/a>).<\/li>\r\n \t<li>Basic knowledge of SSIS package\u00a0development using\u00a0<em>Microsoft SQL Server Integration Services<\/em>.<\/li>\r\n \t<li>Make sure\u00a0<span style=\"text-decoration: underline;\"><a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/\" target=\"_blank\" rel=\"noopener\">ZappySys SSIS PowerPack<\/a><\/span>\u00a0is installed (<a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/download\/\" target=\"_blank\" rel=\"noopener\">download it<\/a>, if you haven't already).<\/li>\r\n \t<li>(<em>Optional step<\/em>)<em>.<\/em>\u00a0<a href=\"https:\/\/zappysys.zendesk.com\/hc\/en-us\/articles\/360035974593\" target=\"_blank\" rel=\"noopener\">Read this article<\/a>, if you are planning to deploy packages to a server and schedule their execution later.<\/li>\r\n<\/ol><\/div>\n<h2>Authentication Using Zoho V2 REST API (OAuth 2.0)<\/h2>\n<p>Zoho recently released v2 API. It uses OAuth 2.0 instead of static Token based (described in the next section). OAuth approach is more secure an recommended. If you must use static token-method then check next section. Zoho may discontinue Token based method in future.<\/p>\n<h3>Register Zoho OAuth App and get ClientID\/ Secret (*** MUST READ ***)<\/h3>\n<p><a href=\"https:\/\/zappysys.com\/blog\/register-oauth-app-zoho-api\/\" target=\"_blank\" rel=\"noopener\">Check this article<\/a> to register your OAuth App and obtain Client ID\u00a0 \/Client Secret<\/p>\n<h3>Create Zoho OAuth Connection in SSIS (for API call)<\/h3>\n<p>Once you create Zoho OAuth App now its time to call some Zoho API. We will use <a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-rest-api-web-service-task\/\" target=\"_blank\" rel=\"noopener\">ZappySys REST API Task<\/a> to make simple API call. In the next section we will see how to load data in SQL Server.<\/p>\n<ol>\n<li>Open SSIS Package and go to SSIS Designer (Control Flow)<\/li>\n<li>Drag <strong>ZS REST API Task<\/strong> from Control Flow SSIS Toolbox as below\n<div style=\"width: 565px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full\" src=\"https:\/\/zappysys.com\/onlinehelp\/ssis-powerpack\/scr\/images\/rest-api-task\/ssis-rest-api-web-service-task-drag.png\" alt=\"Drag and drop SSIS REST API Task from SSIS Toolbox \" width=\"555\" height=\"199\" \/><p class=\"wp-caption-text\">Drag and drop SSIS REST API Task from SSIS Toolbox<\/p><\/div><\/li>\n<li>Double click the task to configure.<\/li>\n<li>Change URL Access mode to <strong>URL from Connection<\/strong><\/li>\n<li>Enter API <strong>URL<\/strong> you like to call. For example you can enter below\n<pre class=\"lang:default highlight:0 decode:true\">https:\/\/www.zohoapis.com\/crm\/v2\/settings\/modules<\/pre>\n<\/li>\n<li>Select <strong>New ZS-OAUTH<\/strong> connection from Connection drop down\n<div id=\"attachment_8307\" style=\"width: 511px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-call-rest-api-oauth-use-connection.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-8307\" class=\"size-full wp-image-8307\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-call-rest-api-oauth-use-connection.png\" alt=\"Call Zoho REST API using OAuth 2.0\" width=\"501\" height=\"406\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-call-rest-api-oauth-use-connection.png 501w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-call-rest-api-oauth-use-connection-300x243.png 300w\" sizes=\"(max-width: 501px) 100vw, 501px\" \/><\/a><p id=\"caption-attachment-8307\" class=\"wp-caption-text\">Call Zoho REST API using OAuth 2.0<\/p><\/div><\/li>\n<li>Configure your OAuth connection General Tab as below\n<ol>\n<li>OAuth Provider: <strong>Custom<\/strong><\/li>\n<li>OAuth Version: <strong>OAuth2<\/strong><\/li>\n<li><strong>Client Id<\/strong> , <strong>Client Secret <\/strong><\/li>\n<li>Enter One Scope Per Line (For more info on scope <a href=\"https:\/\/www.zoho.com\/crm\/help\/api\/v2\/#OAuth2_0\" target=\"_blank\" rel=\"noopener\">read here<\/a>)\n<pre class=\"\">ZohoCRM.modules.READ\r\nZohoCRM.settings.READ<\/pre>\n<\/li>\n<li>Auth URL :\u00a0<strong>https:\/\/accounts.zoho.com\/oauth\/v2\/auth<\/strong><\/li>\n<li>Token URL:\u00a0\u00a0<strong><strong>https:\/\/accounts.zoho.com\/oauth\/v2\/token<\/strong><\/strong><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2022\/04\/zoho-api-configure-oauth-token-url-scopes.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9617\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2022\/04\/zoho-api-configure-oauth-token-url-scopes.png\" alt=\"\" width=\"577\" height=\"328\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2022\/04\/zoho-api-configure-oauth-token-url-scopes.png 577w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2022\/04\/zoho-api-configure-oauth-token-url-scopes-300x171.png 300w\" sizes=\"(max-width: 577px) 100vw, 577px\" \/><\/a><\/li>\n<\/ol>\n<\/li>\n<li>Configure Advanced tab as below\n<ol>\n<li>Enter Callback URL :\u00a0<strong>https:\/\/zappysys.com\/oauth<\/strong><\/li>\n<li>Enter Extra Attribute for \/Auth :\u00a0<strong>access_type=offline&amp;prompt=consent<\/strong><br \/>\nThis is needed to obtain refresh_token (if you ommit this then only access_token returned which cannot be renewed once expired after 1hr)<\/p>\n<div class=\"mceTemp\"><\/div>\n<p><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2022\/04\/zoho-api-oauth-redirect-callback-url.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9618\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2022\/04\/zoho-api-oauth-redirect-callback-url.png\" alt=\"\" width=\"551\" height=\"320\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2022\/04\/zoho-api-oauth-redirect-callback-url.png 551w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2022\/04\/zoho-api-oauth-redirect-callback-url-300x174.png 300w\" sizes=\"(max-width: 551px) 100vw, 551px\" \/><\/a><\/li>\n<\/ol>\n<\/li>\n<li>Now go back to general tab and <strong>Click Generate Token<\/strong>.\n<div id=\"attachment_3349\" style=\"width: 824px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/zoho-oauth-get-token-authenticate-for-rest-api-access.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3349\" class=\"size-full wp-image-3349\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/zoho-oauth-get-token-authenticate-for-rest-api-access.png\" alt=\"Generate OAuth Token for Zoho CRM REST API Access\" width=\"814\" height=\"749\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/zoho-oauth-get-token-authenticate-for-rest-api-access.png 814w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/zoho-oauth-get-token-authenticate-for-rest-api-access-300x276.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/zoho-oauth-get-token-authenticate-for-rest-api-access-768x707.png 768w\" sizes=\"(max-width: 814px) 100vw, 814px\" \/><\/a><p id=\"caption-attachment-3349\" class=\"wp-caption-text\">Generate OAuth Token for Zoho CRM REST API Access<\/p><\/div><\/li>\n<li>Click OK to save the connection UI<\/li>\n<\/ol>\n<h3>Call Zoho API using OAuth Connection<\/h3>\n<ol>\n<li>On the REST API Task click Test Request \/ Response\n<div id=\"attachment_3351\" style=\"width: 790px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-call-zoho-rest-api-using-oauth.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3351\" class=\"size-full wp-image-3351\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-call-zoho-rest-api-using-oauth.png\" alt=\"SSIS REST API Task - Call Zoho REST API in SSIS (OAuth 2.0) \" width=\"780\" height=\"679\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-call-zoho-rest-api-using-oauth.png 780w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-call-zoho-rest-api-using-oauth-300x261.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-call-zoho-rest-api-using-oauth-768x669.png 768w\" sizes=\"(max-width: 780px) 100vw, 780px\" \/><\/a><p id=\"caption-attachment-3351\" class=\"wp-caption-text\">SSIS REST API Task &#8211; Call Zoho REST API in SSIS (OAuth 2.0)<\/p><\/div><\/li>\n<\/ol>\n<h2>Read data from Zoho Table in SSIS JSON Source<\/h2>\n<p>In this section we will learn how to read data from Zoho using SSIS JSON Source. We will use OAuth connection created in earlier section.<\/p>\n<p>Now lets look at step by step example of reading Zoho CRM data using SSIS (e.g. read Leads, Accounts, Contacts, Invoice etc). Zoho provides JSON API for read action so we will Use <a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-json-file-source\/\" target=\"_blank\" rel=\"noopener\">SSIS JSON Source<\/a> for this purpose. Full sample package is attached at the end of this article but see below steps for high level configuration.<\/p>\n<h3>Configure JSON Source<\/h3>\n<p>So below steps shows example of reading from Zoho Lead modules using <a href=\"https:\/\/www.zoho.com\/crm\/developer\/docs\/api\/get-records.html\" target=\"_blank\" rel=\"noopener\">v2 records API Call<\/a>.<\/p>\n<ol>\n<li>Open SSIS Package<\/li>\n<li>Drag data flow task from Control flow SSIS Toolbox\n<div style=\"width: 470px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full\" src=\"https:\/\/zappysys.com\/onlinehelp\/ssis-powerpack\/scr\/images\/drag-and-drop-data-flow-task.png\" alt=\"Drag data flow from SSIS Toolbox\" width=\"460\" height=\"155\" \/><p class=\"wp-caption-text\">Drag data flow from SSIS Toolbox<\/p><\/div><\/li>\n<li>Go to data flow and drag <a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-json-file-source\/\" target=\"_blank\" rel=\"noopener\">ZS JSON Source<\/a> from SSIS Toolbox\n<div style=\"width: 551px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full\" src=\"https:\/\/zappysys.com\/onlinehelp\/ssis-powerpack\/scr\/images\/json-source\/ssis-json-source-adapter-drag.png\" alt=\"Drag and drop SSIS JSON Source (REST API or File)\" width=\"541\" height=\"144\" \/><p class=\"wp-caption-text\">Drag and drop SSIS JSON Source (REST API or File)<\/p><\/div><\/li>\n<li>Double click JSON Source to configure.\u00a0Enter URL as below. You can supply few more parameters.\u00a0<a href=\"https:\/\/www.zoho.com\/crm\/developer\/docs\/api\/get-records.html\" target=\"_blank\" rel=\"noopener\">Click Here to get full list of parameters and usage<\/a>. In below example we are reading records from Leads Module but you can replace Leads to something else (e.g. Accounts). Refer to above help link for available Modules.\n<pre class=\"lang:default highlight:0 decode:true\">https:\/\/www.zohoapis.com\/crm\/v2\/Leads?per_page=200<\/pre>\n<\/li>\n<li>Check Use Credentials. Select OAuth connection manager we created in the previous section.<\/li>\n<li>Under filter options tab, enter Array Filter as\u00a0\u00a0<span class=\"lang:default highlight:0 decode:true crayon-inline\">$.data[*]<\/span><\/li>\n<li>Now click Preview to see your data\n<div id=\"attachment_8308\" style=\"width: 947px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-extract-data-based-on-last-modified-date.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-8308\" class=\"size-full wp-image-8308\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-extract-data-based-on-last-modified-date.png\" alt=\"Read data from Zoho API v2 using SSIS - OAuth (Use Last Modified Date for Incremental Extract)\" width=\"937\" height=\"806\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-extract-data-based-on-last-modified-date.png 937w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-extract-data-based-on-last-modified-date-300x258.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-extract-data-based-on-last-modified-date-768x661.png 768w\" sizes=\"(max-width: 937px) 100vw, 937px\" \/><\/a><p id=\"caption-attachment-8308\" class=\"wp-caption-text\">Read data from Zoho API v2 using SSIS &#8211; OAuth (Use Last Modified Date for Incremental Extract)<\/p><\/div><\/li>\n<li>Click OK to save UI. In the next section we will see how to setup pagination and incremental extract of Zoho records. After that we will see how to load data into SQL Server Table.<\/li>\n<\/ol>\n<h3>Zoho API Pagination (Read all rows)<\/h3>\n<p>Just like most API zoho also uses pagination. See below for how to configure pagination in JSON Source for Zoho API.<\/p>\n<ol>\n<li>Double click JSON Source<\/li>\n<li>Go to the\u00a0<strong>Pagination<\/strong> Tab and select <strong>URL Parameter Mode<\/strong><\/li>\n<li>For <strong>Page Num Indicator<\/strong> Enter <span class=\"lang:default decode:true crayon-inline \">page<\/span><\/li>\n<li>For <strong>Last Page Detection<\/strong> select <span class=\"lang:default decode:true crayon-inline\">Detect last page based on status code<\/span><\/li>\n<li>In the Status code field<br \/>\nenter <strong>304<\/strong> (if you added\u00a0If-Modified-Since header for incremental extract &#8211; See next section)<br \/>\nenter <strong>204<\/strong> (if you do not add If-Modified-Since)<\/li>\n<\/ol>\n<p>Once you configure this way now your API will return all records until last page is detected. For more information on pagination <a href=\"https:\/\/zappysys.com\/blog\/ssis-rest-api-looping-until-no-more-pages-found\/\" target=\"_blank\" rel=\"noopener\">check this article<\/a><\/p>\n<div id=\"attachment_8309\" style=\"width: 674px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/pagination-stop-detect-based-on-status-code.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-8309\" class=\"size-full wp-image-8309\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/pagination-stop-detect-based-on-status-code.png\" alt=\"Paginate Zoho API records\" width=\"664\" height=\"243\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/pagination-stop-detect-based-on-status-code.png 664w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/pagination-stop-detect-based-on-status-code-300x110.png 300w\" sizes=\"(max-width: 664px) 100vw, 664px\" \/><\/a><p id=\"caption-attachment-8309\" class=\"wp-caption-text\">Paginate Zoho API records<\/p><\/div>\n<h3>Incremental Extract based on Last Modified Date\/Time field<\/h3>\n<p>Each module in Zoho has Last Modified By and LastModified Date\/Time fields. You can filter extracted data for incremental extract by supplying <span class=\"lang:default highlight:0 decode:true crayon-inline \">If-Modified-Since<\/span>\u00a0\u00a0HTTP header along with your request. Here is how to do.<\/p>\n<ol>\n<li>On the JOSN Source, click Raw Edit above HTTP Headers Grid.\u00a0 We can define Header to extract data after last modified date. Skip this step if you like to extract all records.<br \/>\nFor example to read Lead records which are modified after 12\/31\/2019 you can enter header like below. Date\/Time is UTC. When record is created Modified date is set as creation date too so this will include created records too.<\/p>\n<pre class=\"lang:default highlight:0 decode:true\">If-Modified-Since: 2019-12-31T00:00:00<\/pre>\n<p>If you have local time saved in a variable and you like to use SSIS variable then you can use below way. In this example we converted Local time to UTC.<\/p>\n<pre class=\"lang:default highlight:0 decode:true\">If-Modified-Since: &lt;&lt;{{User::varExtractDate,yyyy-MM-ddTHH:mm:ss}},FUN_TO_UTC_DATE&gt;&gt;<\/pre>\n<\/li>\n<\/ol>\n<h2><\/h2>\n<h3>Loading Zoho data into SQL Server Table \/ Other Target<\/h3>\n<div class=\"content_block\" id=\"custom_post_widget-5617\"><p>ZappySys SSIS PowerPack makes it easy to load data from various sources such as REST, SOAP, JSON, XML, CSV or from other source into SQL Server, or PostgreSQL, or Amazon Redshift, or other  targets. The <strong>Upsert Destination<\/strong> component allows you to automatically insert new records and update existing ones based on key columns. Below are the detailed steps to configure it.<\/p>\r\n<h3>Step 1: Add Upsert Destination to Data Flow<\/h3>\r\n<ol>\r\n<li>Drag and drop the <strong>Upsert Destination<\/strong> component from the SSIS Toolbox.<\/li>\r\n<li>Connect your source component (e.g., JSON \/ REST \/ Other Source) to the Upsert Destination.<\/li>\r\n<\/ol>\r\n<div class=\"wp-caption aligncenter\">\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2017\/08\/ssis-data-flow-drag-drop-upsert-destination.png\">\r\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full\" alt=\"\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2017\/08\/ssis-data-flow-drag-drop-upsert-destination.png\" \/><\/a>\r\n<p class=\"wp-caption-text\">SSIS - Data Flow - Drang and Drop Upsert Destination Component<\/p>\r\n<\/div>\r\n<h3>Step 2: Configure Target Connection<\/h3>\r\n<ol>\r\n<li>Double-click the <strong>Upsert Destination<\/strong> component to open the configuration window.<\/li>\r\n<li>Under <strong>Connection<\/strong>, select an existing target connection or click <strong>NEW<\/strong> to create a new connection.\r\n<ul>\r\n<li>Example: SQL Server, or PostgreSQL, or Amazon Redshift.<\/li>\r\n<\/ul>\r\n<\/li>\r\n<\/ol>\r\n<h3>Step 3: Select or Create Target Table<\/h3>\r\n<ol>\r\n<li>In the <strong>Target Table<\/strong> dropdown, select the table where you want to load data.<\/li>\r\n<li>Optionally, click <strong>NEW<\/strong> to create a new table based on the source columns.<\/li>\r\n<\/ol>\r\n<div class=\"wp-caption aligncenter\">\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/09\/upsert-destination-configuration.png\">\r\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full\" alt=\"\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/09\/upsert-destination-configuration.png\" \/><\/a>\r\n<p class=\"wp-caption-text\">Configure SSIS Upsert Destination Connection - Loading data (REST \/ SOAP \/ JSON \/ XML \/CSV) into SQL Server or other target using SSIS<\/p>\r\n<\/div>\r\n<h3>Step 4: Map Columns<\/h3>\r\n<ol>\r\n<li>Go to the <strong>Mappings<\/strong> tab.<\/li>\r\n<li>Click <strong>Auto Map<\/strong> to map source columns to target columns by name.<\/li>\r\n<li>Ensure you <strong>check the Primary key column(s)<\/strong> that will determine whether a record is inserted or updated.<\/li>\r\n<li>You can manually adjust the mappings if necessary.<\/li>\r\n<\/ol>\r\n <div class=\"wp-caption aligncenter\">\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/09\/upsert-destination-key.png\">\r\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full\" alt=\"\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/09\/upsert-destination-key.png\" \/><\/a>\r\n<p class=\"wp-caption-text\">SSIS Upsert Destination - Columns Mappings<\/p>\r\n<\/div>\r\n<h3>Step 5: Save Settings<\/h3>\r\n<ul>\r\n<li>Click <strong>OK<\/strong> to save the Upsert Destination configuration.<\/li>\r\n<\/ul>\r\n<h3>Step 6: Optional: Add Logging or Analysis<\/h3>\r\n<ul>\r\n<li>You may add extra destination components to log the number of inserted vs. updated records for monitoring or auditing purposes.<\/li>\r\n<\/ul>\r\n<h3>Step 7: Execute the Package<\/h3>\r\n<ul>\r\n<li>Run your SSIS package and verify that the data is correctly inserted and updated in the target table.<\/li>\r\n<\/ul>\r\n<div class=\"wp-caption aligncenter\">\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/12\/ssis-upsert-destination-execute.png\">\r\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full\" alt=\"\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/12\/ssis-upsert-destination-execute.png\" \/><\/a>\r\n<p class=\"wp-caption-text\">SSIS Upsert Destination Execution<\/p>\r\n<\/div><\/div>\n<h3>Write data to Zoho CRM using OAuth 2.0<\/h3>\n<p>If you like to load data from any source (i.e. SQL Server) to Zoho CRM then you can use <a href=\"https:\/\/www.zoho.com\/crm\/developer\/docs\/api\/insert-records.html\" target=\"_blank\" rel=\"noopener\">Records API (POST)<\/a>. Use combination of the following Transforms\u00a0 \/ Components. Later in this article we have some more examples (Older API) which may give you one more ways to load data into Zoho (Use of Template Transform).<\/p>\n<p>Basically you have to build POST Body using JSON Generator Transform or Template Transform and then use that data in Web API Destination to call POST API request to push data to Zoho.<\/p>\n<div class=\"su-table su-table-alternate\">\n<table>\n<tbody>\n<tr class=\"su-even\">\n<td width=\"36\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/zappysys.com\/images\/ssis-powerpack\/ssis-rest-api-web-service-task.png?w=32&amp;ssl=1\" alt=\"Custom SSIS Tasks - Call REST API Webservice (GET, POST, DELETE etc)\" width=\"32\" height=\"32\" \/><\/td>\n<td><u><a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-web-api-destination-connector\/\" target=\"_blank\" rel=\"noopener\">Web API Destination<\/a><\/u><\/td>\n<\/tr>\n<tr>\n<td width=\"36\" height=\"36\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/zappysys.com\/images\/SSIS-PowerPack\/ssis-json-generator-transform.png\" alt=\"JSON Generator Transform\" width=\"32\" height=\"32\" \/><\/td>\n<td><a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-json-generator-transform\/\" target=\"_blank\" rel=\"noopener\">JSON Generator Transform<\/a><\/td>\n<\/tr>\n<tr class=\"su-even\">\n<td width=\"36\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/zappysys.com\/onlinehelp\/ssis-powerpack\/scr\/images\/json-parser-transform\/ssis-json-parser-transform.png\" alt=\"XML Parser Transform\" width=\"32\" height=\"32\" \/><\/td>\n<td><a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-json-parser-transform\/\" target=\"_blank\" rel=\"noopener\">JSON Parser Transform<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div id=\"attachment_8312\" style=\"width: 678px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-json-generator-single-dataset-zoho-write.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-8312\" class=\"size-full wp-image-8312\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-json-generator-single-dataset-zoho-write.png\" alt=\"Create JSON for POST request (Single dataset pattern)\" width=\"668\" height=\"730\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-json-generator-single-dataset-zoho-write.png 668w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-json-generator-single-dataset-zoho-write-275x300.png 275w\" sizes=\"(max-width: 668px) 100vw, 668px\" \/><\/a><p id=\"caption-attachment-8312\" class=\"wp-caption-text\">Create JSON for POST request (Single dataset pattern)<\/p><\/div>\n<p>&nbsp;<\/p>\n<div id=\"attachment_8313\" style=\"width: 757px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-write-data-bulk-insert-leads-accounts.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-8313\" class=\"size-full wp-image-8313\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-write-data-bulk-insert-leads-accounts.png\" alt=\"Insert data to Zoho Table using SSIS (Lead, Account Modules) - Bulk Load using POST API call\" width=\"747\" height=\"630\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-write-data-bulk-insert-leads-accounts.png 747w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-write-data-bulk-insert-leads-accounts-300x253.png 300w\" sizes=\"(max-width: 747px) 100vw, 747px\" \/><\/a><p id=\"caption-attachment-8313\" class=\"wp-caption-text\">Insert data to Zoho Table using SSIS (Lead, Account Modules) &#8211; Bulk Load using POST API call<\/p><\/div>\n<h2>Authentication Using Zoho Tokens<\/h2>\n<p>If you don&#8217;t want to use a <a href=\"https:\/\/www.zoho.com\/crm\/help\/api\/v2\/\" target=\"_blank\" rel=\"noopener\">newer version of Zoho API<\/a> (v2) then you can use Token based Authentication method.<\/p>\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;\">Token based method will be depreciated soon so avoid it if possible. Use OAuth 2.0 described in the previous section whenever possible.\u00a0<\/div><\/div>\n<p>In Zoho Portal perform following steps to obtain API token<\/p>\n<ol>\n<li>Click on Setup (Toolbox icon at the top-right corner)<\/li>\n<li>Search for &#8220;API&#8221; &gt; Select CRM API\u00a0 or find under <strong>Developer space<\/strong> &gt; <strong>APIs<\/strong><\/li>\n<li>Click on <strong>Gear icon<\/strong> found above Usage Panel (small icon so find carefully)<\/li>\n<li>Click on <strong>Authentication Token generation<\/strong><\/li>\n<li>Specify the APP Name and\u00a0<strong>Click Generate<\/strong><\/li>\n<li>This will direct to the new page which may contain text like below. Just copy AUTHTOKEN part (i.e.\u00a0<strong>8a08xxxxxxxxxx13630d<\/strong> )\n<pre class=\"lang:default highlight:0 decode:true\">#\r\n#Mon May 15 12:21:42 PDT 2017\r\nAUTHTOKEN=8a083f76xxxxxxxxxxxxxxxxxxxdxxxxxxxx13630d\r\nRESULT=TRUE<\/pre>\n<\/li>\n<li>Now use the newly created auth token to your API call.<\/li>\n<\/ol>\n<div id=\"attachment_2642\" style=\"width: 1091px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/how-to-get-zoho-crm-api-token.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-2642\" class=\"size-full wp-image-2642\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/how-to-get-zoho-crm-api-token.png\" alt=\"How to get Zoho CRM API Token(For SSIS or other app integration)\" width=\"1081\" height=\"576\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/how-to-get-zoho-crm-api-token.png 1081w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/how-to-get-zoho-crm-api-token-300x160.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/how-to-get-zoho-crm-api-token-768x409.png 768w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/how-to-get-zoho-crm-api-token-1024x546.png 1024w\" sizes=\"(max-width: 1081px) 100vw, 1081px\" \/><\/a><p id=\"caption-attachment-2642\" class=\"wp-caption-text\">How to get Zoho CRM API Token (For SSIS or other app integration)<\/p><\/div>\n<p>&nbsp;<\/p>\n<h3>Read data from Zoho using SSIS (Export Zoho CRM data to SQL Server Table)<\/h3>\n<p>Now lets look at step by step example of reading Zoho CRM data using SSIS (e.g. read Leads, Accounts, Contacts, Invoice etc). Zoho provides JSON API for read action so we will Use <a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-json-file-source\/\" target=\"_blank\" rel=\"noopener\">SSIS JSON Source<\/a> for this purpose. Full sample package is attached at the end of this article but see below steps for high level configuration.<\/p>\n<p>So below steps shows example of reading Zoho Lead modules using <a href=\"https:\/\/www.zoho.com\/crm\/help\/api\/getrecords.html\" target=\"_blank\" rel=\"noopener\">getRecords API Call<\/a>.<\/p>\n<ol>\n<li>Goto SSIS &gt; Variable and create a new string variable called token. Enter your Zoho API token as value (see previous section to get API token)<\/li>\n<li>Drag data flow task from Control flow SSIS Toolbox<\/li>\n<li>Go to data flow and drag <a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-json-file-source\/\" target=\"_blank\" rel=\"noopener\">ZS JSON Source<\/a> from SSIS Toolbox<\/li>\n<li>Double click JSON Source to configure as below\n<ol>\n<li>Enter URL as below. Note that we have use Variable for Token to make URL dynamic.To read from different module change URL (e.g. rather than Leads in URL use Accounts).\u00a0 <a href=\"https:\/\/www.zoho.com\/crm\/help\/api\/modules-fields.html\" target=\"_blank\" rel=\"noopener\">Click Here to get full list of Modules and Fields<\/a>\n<pre class=\"lang:default highlight:0 decode:true\">https:\/\/crm.zoho.com\/crm\/private\/json\/Leads\/getRecords?newFormat=1&amp;authtoken={{User::token}}&amp;scope=crmapi&amp;fromIndex=0&amp;toIndex=200<\/pre>\n<p>You can also use lastModifiedTime parameter along leads modified after certain date\/time (this time is\u00a0<strong>Local time<\/strong>\u00a0and not the UTC).\u00a0To extract leads modified after certain date (Create a datetime variable called varExtractDate) and use it as below in the URL. You\u00a0can use any <a href=\"https:\/\/zappysys.com\/onlinehelp\/ssis-powerpack\/scr\/ssis-format-specifiers.htm\" target=\"_blank\" rel=\"noopener\">valid format specifiers for date time<\/a><\/p>\n<pre class=\"wrap:true lang:default highlight:0 decode:true\">https:\/\/crm.zoho.com\/crm\/private\/json\/Leads\/getRecords?newFormat=1&amp;authtoken={{User::token}}&amp;scope=crmapi&amp;fromIndex=0&amp;toIndex=200&amp;lastModifiedTime={{User::varExtractDate,yyyy-MM-dd HH:mm:ss}}<\/pre>\n<\/li>\n<li>Click on the Select Filter and select node with Array icon as below. Each Module may have different structure for example for Leads module Filter may look like\u00a0<strong>$.response.result.Leads.row[*]<\/strong>\n<div id=\"attachment_2643\" style=\"width: 1028px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-read-zoho-crm-data-using-json-api-source-import-leads.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-2643\" class=\"size-full wp-image-2643\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-read-zoho-crm-data-using-json-api-source-import-leads.png\" alt=\"Configure SSIS JSON Source - Read Zoho CRM Leads (getRecords API call with lastModifiedDate Example)\" width=\"1018\" height=\"759\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-read-zoho-crm-data-using-json-api-source-import-leads.png 1018w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-read-zoho-crm-data-using-json-api-source-import-leads-300x224.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-read-zoho-crm-data-using-json-api-source-import-leads-768x573.png 768w\" sizes=\"(max-width: 1018px) 100vw, 1018px\" \/><\/a><p id=\"caption-attachment-2643\" class=\"wp-caption-text\">Configure SSIS JSON Source &#8211; Read Zoho CRM Leads (getRecords API call with lastModifiedDate Example)<\/p><\/div><\/li>\n<li>Now go to 2D Array Tab and configure like below\n<ol>\n<li>Select Transform Type to Key\/Value Pivot Mode.<\/li>\n<li>Select or type Column Filter as\u00a0<strong>$.FL[*].val<\/strong><\/li>\n<li>Select or type Row Value Filter as\u00a0<strong>$.FL[*].content<\/strong><\/li>\n<\/ol>\n<\/li>\n<li>Once you configure 2D Array Transform click Preview to see sample data<\/li>\n<li>.<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-read-zoho-crm-data-pivot-attributes-preview-leads.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2644\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-read-zoho-crm-data-pivot-attributes-preview-leads.png\" alt=\"\" width=\"736\" height=\"460\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-read-zoho-crm-data-pivot-attributes-preview-leads.png 736w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-read-zoho-crm-data-pivot-attributes-preview-leads-300x188.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-read-zoho-crm-data-pivot-attributes-preview-leads-436x272.png 436w\" sizes=\"(max-width: 736px) 100vw, 736px\" \/><\/a><\/li>\n<li>Click OK to save JSON Source and attach it to target such as SQL Server Destination like below.<\/li>\n<li>Execute Package to test.\n<div id=\"attachment_2645\" style=\"width: 718px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-to-sql-server-data-table-loading-json-api-source-example.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-2645\" class=\"size-full wp-image-2645\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-to-sql-server-data-table-loading-json-api-source-example.png\" alt=\"SSIS Example : Loading Zoho CRM data to SQL Server Table (JSON API Source)\" width=\"708\" height=\"343\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-to-sql-server-data-table-loading-json-api-source-example.png 708w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-to-sql-server-data-table-loading-json-api-source-example-300x145.png 300w\" sizes=\"(max-width: 708px) 100vw, 708px\" \/><\/a><p id=\"caption-attachment-2645\" class=\"wp-caption-text\">SSIS Example : Loading Zoho CRM data to SQL Server Table (JSON API Source)<\/p><\/div><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<h2>Write data to Zoho using SSIS (Import SQL Server Table to Zoho CRM)<\/h2>\n<p>Now you know how to read data from Zoho CRM using JSON API Source next step is to load data to Zoho CRM. For writing data we will use following three components<\/p>\n<div class=\"su-table su-table-alternate\">\n<table>\n<tbody>\n<tr class=\"su-even\">\n<td width=\"36\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/zappysys.com\/images\/ssis-powerpack\/ssis-rest-api-web-service-task.png?w=32&amp;ssl=1\" alt=\"Custom SSIS Tasks - Call REST API Webservice (GET, POST, DELETE etc)\" width=\"32\" height=\"32\" \/><\/td>\n<td><u><a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-web-api-destination-connector\/\" target=\"_blank\" rel=\"noopener\">Web API Destination<\/a><\/u><\/td>\n<\/tr>\n<tr>\n<td width=\"36\" height=\"36\"><\/td>\n<td>Template Transform<\/td>\n<\/tr>\n<tr class=\"su-even\">\n<td width=\"36\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"\/\/zappysys.com\/onlinehelp\/ssis-powerpack\/scr\/images\/xml-parser-transform\/ssis-xml-parser-transform.png\" alt=\"XML Parser Transform\" width=\"32\" height=\"32\" \/><\/td>\n<td><a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-xml-parser-transform\/\" target=\"_blank\" rel=\"noopener\">XML Parser Transform<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>For this example we will use hard coded data in CSV Source (Sample Leads ) but in real world you will have data coming from some RDBMS such as SQL Server.<\/p>\n<ol>\n<li>Drag Data flow Task and double click to go to Data flow designer.<\/li>\n<li>Drag <a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-csv-file-source-flat-file-web-api\/\" target=\"_blank\" rel=\"noopener\">ZS CSV Source<\/a>\u00a0from the SSIS Toolbox. Change Access mode to Direct Value. Enter following sample data for demo.\n<pre class=\"lang:default highlight:0 decode:true \">Company,First Name,Last Name,Email,Lead Status,Lead Source,Phone\r\nMicrosoft,TestMaawia,TestBrito,Maawia@outlook.com,Lunk Lead,Web Download,111-111-3333\r\nMicrosoft,Testraja,Testvedaiyan,raja@outlook.com,Lunk Lead,Web Download,111-222-3333\r\nYahoo,TestJayder,Testelnageib,Jayder@outlook.com,Lunk Lead,Web Download,111-333-3333\r\nYahoo,TestStephen,TestTjebane,Stephen@outlook.com,Lunk Lead,Web Download,111-444-3333\r\nGoogle,TestHarold,TestBatista,Harold@gmail.com,Lunk Lead,Web Download,111-555-3333\r\nGoogle,TestVennon,TestMills,Vennon@gmail.com,Lunk Lead,Web Download,111-666-3333\r\nGoogle,TestMichael,TestTremblay,Michael@gmail.com,Lunk Lead,Web Download,111-777-3333<\/pre>\n<\/li>\n<li>Now drag ZS Template Transform. Connect it with previous step.<\/li>\n<li>Double click Template Transform to configure it with following sample Text (This transform was introduced in v2.6.6. If you dont see it then update your SSIS PowerPack to latest version). Use of XMLENC is optional for Non string columns or Alphanumeric values but if you not sure about column type then just add it anyways.\n<pre class=\"lang:default highlight:0 decode:true\">&lt;Leads&gt;\r\n &lt;row no=\"1\"&gt;\r\n  &lt;FL val=\"Lead Status\"&gt;&lt;%Lead Status,XMLENC%&gt;&lt;\/FL&gt;\r\n  &lt;FL val=\"Company\"&gt;&lt;%Company,XMLENC%&gt;&lt;\/FL&gt;\r\n  &lt;FL val=\"First Name\"&gt;&lt;%First Name,XMLENC%&gt;&lt;\/FL&gt;\r\n  &lt;FL val=\"Last Name\"&gt;&lt;%Last Name,XMLENC%&gt;&lt;\/FL&gt;\r\n  &lt;FL val=\"Email\"&gt;&lt;%Email,XMLENC%&gt;&lt;\/FL&gt;\r\n  &lt;FL val=\"Phone\"&gt;&lt;%Phone,XMLENC%&gt;&lt;\/FL&gt;\r\n  &lt;FL val=\"Lead Source\"&gt;Web Download&lt;\/FL&gt;\r\n &lt;\/row&gt;\r\n&lt;\/Leads&gt;<\/pre>\n<p><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-crm-insert-leads-api-create-xml-body.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2647\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-crm-insert-leads-api-create-xml-body.png\" alt=\"\" width=\"922\" height=\"762\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-crm-insert-leads-api-create-xml-body.png 922w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-crm-insert-leads-api-create-xml-body-300x248.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-crm-insert-leads-api-create-xml-body-768x635.png 768w\" sizes=\"(max-width: 922px) 100vw, 922px\" \/><\/a><\/li>\n<li>Now drag another ZS Template Transform and connect it with previous step.<\/li>\n<li>Double click Template Transform to configure. Enter\u00a0below text. This is final text we will use as Request Body in the Web API Destination.\n<pre class=\"lang:default highlight:0 decode:true\">xmlData=&lt;%TemplateOutput,URLENC%&gt;<\/pre>\n<p><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-crm-insert-leads-api-encode-post-xml-body.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2648\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-crm-insert-leads-api-encode-post-xml-body.png\" alt=\"\" width=\"725\" height=\"711\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-crm-insert-leads-api-encode-post-xml-body.png 725w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-crm-insert-leads-api-encode-post-xml-body-300x294.png 300w\" sizes=\"(max-width: 725px) 100vw, 725px\" \/><\/a><\/li>\n<li>Drag Microsoft Derived Column Transform. Connect with previous step and double click it to\u00a0configure.<\/li>\n<li>Select <strong>Replace &#8216;TemplateOutput&#8217;<\/strong> action. Type new column name in the first column e.g.\u00a0<strong>TemplateOutput_Encoded<\/strong><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-crm-insert-leads-api-derived-column-rename.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2649\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-crm-insert-leads-api-derived-column-rename.png\" alt=\"\" width=\"849\" height=\"386\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-crm-insert-leads-api-derived-column-rename.png 849w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-crm-insert-leads-api-derived-column-rename-300x136.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-crm-insert-leads-api-derived-column-rename-768x349.png 768w\" sizes=\"(max-width: 849px) 100vw, 849px\" \/><\/a><\/li>\n<li>Now drag ZS Web API Destination, Connect with previous step and double click to configure as below.\n<ol>\n<li>Select New HTTP Connection. Enter some valid URL e.g. https:\/\/zoho.com\u00a0 (This will be ignored anyways because we will use Dynamic URL on main UI)<\/li>\n<li>Enter URL as below (see how we again added API token as dynamic variable) . If you inserting to different Module (e.g. Accounts rather than Leads then change accordingly).\u00a0\u00a0 <a href=\"https:\/\/www.zoho.com\/crm\/help\/api\/modules-fields.html\" target=\"_blank\" rel=\"noopener\">Click Here to get full list of Modules and Fields<\/a>\n<pre class=\"lang:default highlight:0 decode:true\">https:\/\/crm.zoho.com\/crm\/private\/xml\/Leads\/insertRecords?newFormat=1&amp;authtoken={{User::token}}&amp;scope=crmapi&amp;duplicateCheck<\/pre>\n<\/li>\n<li>Select Input Body column as <strong>TemplateOutput_Encoded<\/strong><\/li>\n<li>Enter Sample Body as below if you like to use Test feature else ignore this step. Click Test to see its working. Capture Response XML because you may need in the next step to feed as sample to XML Parser Transform (again optional step).\n<pre class=\"lang:default highlight:0 decode:true\">&lt;Leads&gt;\r\n &lt;row no=\"1\"&gt;\r\n  &lt;FL val=\"Lead Status\"&gt;Junk Lead&lt;\/FL&gt;\r\n  &lt;FL val=\"Company\"&gt;ABCD Inc&lt;\/FL&gt;\r\n  &lt;FL val=\"First Name\"&gt;Bob&lt;\/FL&gt;\r\n  &lt;FL val=\"Last Name\"&gt;Smith&lt;\/FL&gt;\r\n  &lt;FL val=\"Email\"&gt;bob@abc.com&lt;\/FL&gt;\r\n  &lt;FL val=\"Phone\"&gt;111-222-3333&lt;\/FL&gt;\r\n  &lt;FL val=\"Lead Source\"&gt;Web Download&lt;\/FL&gt;\r\n &lt;\/row&gt;\r\n&lt;\/Leads&gt;<\/pre>\n<p><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-crm-insert-leads-web-api-destination-post.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2650\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-crm-insert-leads-web-api-destination-post.png\" alt=\"\" width=\"833\" height=\"615\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-crm-insert-leads-web-api-destination-post.png 833w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-crm-insert-leads-web-api-destination-post-300x221.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-crm-insert-leads-web-api-destination-post-768x567.png 768w\" sizes=\"(max-width: 833px) 100vw, 833px\" \/><\/a><\/li>\n<\/ol>\n<\/li>\n<li>Now once API destination is set we can optionally configure below steps if you want to store status and ID of newly created records. If you don&#8217;t care for that then skip below steps.<\/li>\n<li>Drag ZS XML Parser Transform, Connect it Web API Destination (Response Output &#8211; Blue Arrow). Double click XML Parser to configure as below\n<ol>\n<li>Select Input XMl Column as <strong>ResponseText<\/strong><\/li>\n<li>Enter Sample Text as below\n<pre class=\"lang:default highlight:0 decode:true \">&lt;?xml version=\"1.0\" encoding=\"UTF-8\" ?&gt;\r\n&lt;response uri=\"\/crm\/private\/xml\/Leads\/insertRecords\"&gt;\r\n\t&lt;result&gt;\r\n\t\t&lt;message&gt;Record(s) added successfully&lt;\/message&gt;\r\n\t\t&lt;recorddetail&gt;\r\n\t\t\t&lt;FL val=\"Id\"&gt;1558554000015597002&lt;\/FL&gt;\r\n\t\t\t&lt;FL val=\"Created Time\"&gt;2018-02-13 16:14:10&lt;\/FL&gt;\r\n\t\t\t&lt;FL val=\"Modified Time\"&gt;2018-02-13 16:14:10&lt;\/FL&gt;\r\n\t\t\t&lt;FL val=\"Created By\"&gt;\r\n\t\t\t\t&lt;![CDATA[ZappySys Support]]&gt;\r\n\t\t\t&lt;\/FL&gt;\r\n\t\t\t&lt;FL val=\"Modified By\"&gt;\r\n\t\t\t\t&lt;![CDATA[ZappySys Support]]&gt;\r\n\t\t\t&lt;\/FL&gt;\r\n\t\t&lt;\/recorddetail&gt;\r\n\t&lt;\/result&gt;\r\n&lt;\/response&gt;<\/pre>\n<p>&nbsp;<\/li>\n<li>Enter Filter as below\n<pre class=\"lang:default highlight:0 decode:true\">$.response.result.recorddetail[*]\r\n<\/pre>\n<\/li>\n<li><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-crm-parse-response-insert-leads-web-api-destination-extract-id.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2651\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-crm-parse-response-insert-leads-web-api-destination-extract-id.png\" alt=\"\" width=\"1042\" height=\"534\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-crm-parse-response-insert-leads-web-api-destination-extract-id.png 1042w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-crm-parse-response-insert-leads-web-api-destination-extract-id-300x154.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-crm-parse-response-insert-leads-web-api-destination-extract-id-768x394.png 768w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-crm-parse-response-insert-leads-web-api-destination-extract-id-1024x525.png 1024w\" sizes=\"(max-width: 1042px) 100vw, 1042px\" \/><\/a><\/li>\n<li>Now Go to 2D Array Transform Tab. Configure as below<\/li>\n<li>Select Transform Mode to <strong>Key\/Value<\/strong><\/li>\n<li>Column name filter as\u00a0\u00a0<span class=\"lang:default highlight:0 decode:true crayon-inline \">$.FL[:3].@val<\/span><\/li>\n<li>Row value filter as\u00a0\u00a0<span class=\"lang:default highlight:0 decode:true crayon-inline\">$.FL[:3].#text<\/span><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-crm-parse-xml-api-response-extract-record-id.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2652\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-crm-parse-xml-api-response-extract-record-id.png\" alt=\"\" width=\"898\" height=\"261\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-crm-parse-xml-api-response-extract-record-id.png 898w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-crm-parse-xml-api-response-extract-record-id-300x87.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-crm-parse-xml-api-response-extract-record-id-768x223.png 768w\" sizes=\"(max-width: 898px) 100vw, 898px\" \/><\/a><\/li>\n<li>Now click OK to close.<\/li>\n<\/ol>\n<\/li>\n<li>Drag ZS Trash Destination or some other destination (e.g. SQL Server) and connect Red arrow coming from Web API destination to this component to capture any errors.<\/li>\n<li>Thats it now you ready to run your SSIS sample package which Inserts Leads to Zoho CRM. See below for full package.<\/li>\n<\/ol>\n<div id=\"attachment_2653\" style=\"width: 808px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-api-call-insert-records-leads.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-2653\" class=\"size-full wp-image-2653\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-api-call-insert-records-leads.png\" alt=\"SSIS Example: Import data to Zoho CRM using SSIS Web API Destination (Loading Leads, Accounts, Contacts)\" width=\"798\" height=\"772\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-api-call-insert-records-leads.png 798w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-api-call-insert-records-leads-300x290.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-zoho-api-call-insert-records-leads-768x743.png 768w\" sizes=\"(max-width: 798px) 100vw, 798px\" \/><\/a><p id=\"caption-attachment-2653\" class=\"wp-caption-text\">SSIS Example: Import data to Zoho CRM using SSIS Web API Destination (Loading Leads, Accounts, Contacts)<\/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<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>Sample SSIS Package Download<\/h2>\n<p><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/SSIS-ZohoCRM-ReadWrite.zip\">Click here to download sample package (SSIS 2012 or Higher).<\/a><\/p>\n<h2>Conclusion<\/h2>\n<p>Zoho CRM API provides great way to automate data read\/write operations. However to call Zoho API \u00a0you have to use SDK \/ coding approach (e.g. C#, Java, Python, Ruby). Luckily ZappySys\u00a0<a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/\" target=\"_blank\" rel=\"noopener\">SSIS PowerPack<\/a>\u00a0provides great way to integrate any Zoho API call via simple drag and drop approach without coding. Try \u00a0<a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/\" target=\"_blank\" rel=\"noopener\">SSIS PowerPack<\/a>\u00a0for free and call virtually any REST API in few clicks.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction In this post, you will learn how to read \/ write Zoho CRM data using SSIS (Drag and drop approach without any coding).\u00a0 We will use\u00a0SSIS JSON\/ REST API Source\u00a0to extract data from Zoho API and use\u00a0SSIS Web API Destination\u00a0to write data to Zoho. We will look at step-by-step instructions to read Zoho CRM [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2655,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[225,17,267,200,135],"tags":[270,6,3,7,269,53],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\r\n<title>Read \/ Write Zoho CRM data using SSIS REST API Call | ZappySys Blog<\/title>\r\n<meta name=\"description\" content=\"Easily read and write Zoho CRM data in SSIS using REST API calls. Step-by-step guide to handle OAuth 2.0, parse JSON, and sync data to SQL Server without coding.\" \/>\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-write-zoho-crm-data-using-ssis-rest-api-call\/\" \/>\r\n<meta property=\"og:locale\" content=\"en_US\" \/>\r\n<meta property=\"og:type\" content=\"article\" \/>\r\n<meta property=\"og:title\" content=\"Read \/ Write Zoho CRM data using SSIS REST API Call | ZappySys Blog\" \/>\r\n<meta property=\"og:description\" content=\"Easily read and write Zoho CRM data in SSIS using REST API calls. Step-by-step guide to handle OAuth 2.0, parse JSON, and sync data to SQL Server without coding.\" \/>\r\n<meta property=\"og:url\" content=\"https:\/\/zappysys.com\/blog\/read-write-zoho-crm-data-using-ssis-rest-api-call\/\" \/>\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=\"2018-02-16T04:21:06+00:00\" \/>\r\n<meta property=\"article:modified_time\" content=\"2025-12-11T11:21:18+00:00\" \/>\r\n<meta property=\"og:image\" content=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/zoho-crm-api-integration-logo.jpg\" \/>\r\n\t<meta property=\"og:image:width\" content=\"300\" \/>\r\n\t<meta property=\"og:image:height\" content=\"300\" \/>\r\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\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=\"17 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-write-zoho-crm-data-using-ssis-rest-api-call\/\",\"url\":\"https:\/\/zappysys.com\/blog\/read-write-zoho-crm-data-using-ssis-rest-api-call\/\",\"name\":\"Read \/ Write Zoho CRM data using SSIS REST API Call | ZappySys Blog\",\"isPartOf\":{\"@id\":\"https:\/\/zappysys.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/zappysys.com\/blog\/read-write-zoho-crm-data-using-ssis-rest-api-call\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/zappysys.com\/blog\/read-write-zoho-crm-data-using-ssis-rest-api-call\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/zoho-crm-api-integration-logo.jpg\",\"datePublished\":\"2018-02-16T04:21:06+00:00\",\"dateModified\":\"2025-12-11T11:21:18+00:00\",\"author\":{\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/2756c237457fbc95d82cb38962f81f82\"},\"description\":\"Easily read and write Zoho CRM data in SSIS using REST API calls. Step-by-step guide to handle OAuth 2.0, parse JSON, and sync data to SQL Server without coding.\",\"breadcrumb\":{\"@id\":\"https:\/\/zappysys.com\/blog\/read-write-zoho-crm-data-using-ssis-rest-api-call\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/zappysys.com\/blog\/read-write-zoho-crm-data-using-ssis-rest-api-call\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/zappysys.com\/blog\/read-write-zoho-crm-data-using-ssis-rest-api-call\/#primaryimage\",\"url\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/zoho-crm-api-integration-logo.jpg\",\"contentUrl\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/zoho-crm-api-integration-logo.jpg\",\"width\":300,\"height\":300},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/zappysys.com\/blog\/read-write-zoho-crm-data-using-ssis-rest-api-call\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/zappysys.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Read \/ Write Zoho CRM data using SSIS REST API Call\"}]},{\"@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":"Read \/ Write Zoho CRM data using SSIS REST API Call | ZappySys Blog","description":"Easily read and write Zoho CRM data in SSIS using REST API calls. Step-by-step guide to handle OAuth 2.0, parse JSON, and sync data to SQL Server without coding.","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-write-zoho-crm-data-using-ssis-rest-api-call\/","og_locale":"en_US","og_type":"article","og_title":"Read \/ Write Zoho CRM data using SSIS REST API Call | ZappySys Blog","og_description":"Easily read and write Zoho CRM data in SSIS using REST API calls. Step-by-step guide to handle OAuth 2.0, parse JSON, and sync data to SQL Server without coding.","og_url":"https:\/\/zappysys.com\/blog\/read-write-zoho-crm-data-using-ssis-rest-api-call\/","og_site_name":"ZappySys Blog","article_author":"https:\/\/www.facebook.com\/ZappySys\/","article_published_time":"2018-02-16T04:21:06+00:00","article_modified_time":"2025-12-11T11:21:18+00:00","og_image":[{"width":300,"height":300,"url":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/zoho-crm-api-integration-logo.jpg","type":"image\/jpeg"}],"author":"ZappySys","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/zappysys\/","twitter_misc":{"Written by":"ZappySys","Est. reading time":"17 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/zappysys.com\/blog\/read-write-zoho-crm-data-using-ssis-rest-api-call\/","url":"https:\/\/zappysys.com\/blog\/read-write-zoho-crm-data-using-ssis-rest-api-call\/","name":"Read \/ Write Zoho CRM data using SSIS REST API Call | ZappySys Blog","isPartOf":{"@id":"https:\/\/zappysys.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/zappysys.com\/blog\/read-write-zoho-crm-data-using-ssis-rest-api-call\/#primaryimage"},"image":{"@id":"https:\/\/zappysys.com\/blog\/read-write-zoho-crm-data-using-ssis-rest-api-call\/#primaryimage"},"thumbnailUrl":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/zoho-crm-api-integration-logo.jpg","datePublished":"2018-02-16T04:21:06+00:00","dateModified":"2025-12-11T11:21:18+00:00","author":{"@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/2756c237457fbc95d82cb38962f81f82"},"description":"Easily read and write Zoho CRM data in SSIS using REST API calls. Step-by-step guide to handle OAuth 2.0, parse JSON, and sync data to SQL Server without coding.","breadcrumb":{"@id":"https:\/\/zappysys.com\/blog\/read-write-zoho-crm-data-using-ssis-rest-api-call\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zappysys.com\/blog\/read-write-zoho-crm-data-using-ssis-rest-api-call\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zappysys.com\/blog\/read-write-zoho-crm-data-using-ssis-rest-api-call\/#primaryimage","url":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/zoho-crm-api-integration-logo.jpg","contentUrl":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/zoho-crm-api-integration-logo.jpg","width":300,"height":300},{"@type":"BreadcrumbList","@id":"https:\/\/zappysys.com\/blog\/read-write-zoho-crm-data-using-ssis-rest-api-call\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zappysys.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Read \/ Write Zoho CRM data using SSIS REST API Call"}]},{"@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\/2625"}],"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=2625"}],"version-history":[{"count":23,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/2625\/revisions"}],"predecessor-version":[{"id":11262,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/2625\/revisions\/11262"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/media\/2655"}],"wp:attachment":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/media?parent=2625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/categories?post=2625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/tags?post=2625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}