<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>REST API Integration Archives | ZappySys Blog</title>
	<atom:link href="https://zappysys.com/blog/category/api-integration/feed/" rel="self" type="application/rss+xml" />
	<link>https://zappysys.com/blog/category/api-integration/</link>
	<description>SSIS / ODBC Drivers / API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more</description>
	<lastBuildDate>Thu, 05 Mar 2026 01:25:27 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.4</generator>

<image>
	<url>https://zappysys.com/blog/wp-content/uploads/2023/01/cropped-zappysys-symbol-large-32x32.png</url>
	<title>REST API Integration Archives | ZappySys Blog</title>
	<link>https://zappysys.com/blog/category/api-integration/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>SSIS tutorial: How to connect to AliPay</title>
		<link>https://zappysys.com/blog/ssis-tutorial-how-to-connect-to-alipay/</link>
		
		<dc:creator><![CDATA[ZappySys Team]]></dc:creator>
		<pubDate>Sat, 21 Feb 2026 01:03:31 +0000</pubDate>
				<category><![CDATA[REST API]]></category>
		<category><![CDATA[REST API Integration]]></category>
		<category><![CDATA[SSIS PowerPack]]></category>
		<category><![CDATA[SSIS REST API Task]]></category>
		<category><![CDATA[SSIS Tasks]]></category>
		<guid isPermaLink="false">https://zappysys.com/blog/?p=11735</guid>

					<description><![CDATA[<p>Introduction In this article, you’ll learn how to connect SSIS PowerPack (ZappySys) to AliPay OpenAPI to call REST endpoints from SSIS. We’ll focus on the practical integration pattern AliPay requires: sending requests to the OpenAPI gateway with the correct parameters and a valid RSA2 signature, then parsing JSON responses in SSIS. AliPay OpenAPI basics (what [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/ssis-tutorial-how-to-connect-to-alipay/">SSIS tutorial: How to connect to AliPay</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Introduction</h2>
<p>In this article, you’ll learn how to connect SSIS PowerPack (ZappySys) to AliPay OpenAPI to call REST endpoints from SSIS. We’ll focus on the practical integration pattern AliPay requires: sending requests to the OpenAPI gateway with the correct parameters and a valid RSA2 signature, then parsing JSON responses in SSIS.</p>
<div class="content_block" id="custom_post_widget-2523"><h2><span id="Prerequisites">Prerequisites</span></h2>
Before we perform the steps listed in this article, you will need to make sure the following prerequisites are met:
<ol style="margin-left: 1.5em;">
 	<li><abbr title="SQL Server Integration Services">SSIS</abbr> designer installed. Sometimes 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>
 	<li>Basic knowledge of SSIS package development using <em>Microsoft SQL Server Integration Services</em>.</li>
 	<li>Make sure <span style="text-decoration: underline;"><a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">ZappySys SSIS PowerPack</a></span> is installed (<a href="https://zappysys.com/products/ssis-powerpack/download/" target="_blank" rel="noopener">download it</a>, if you haven't already).</li>
 	<li>(<em>Optional step</em>)<em>.</em> <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>
</ol></div>
<h2>AliPay OpenAPI basics (what SSIS must send)</h2>
<p>AliPay OpenAPI calls typically go through a single gateway endpoint:</p>
<ul>
<li><strong>Sandbox gateway:</strong><br />
<pre class="crayon-plain-tag">https://openapi-sandbox.dl.alipaydev.com/gateway.do</pre>
</li>
</ul>
<p>A request is built from:</p>
<ul>
<li>Standard parameters (for example: <code>app_id</code>, <code>method</code>, <code>charset</code>, <code>sign_type</code>, <code>timestamp</code>, <code>version</code>)</li>
<li><code>biz_content</code> (usually JSON)</li>
<li><code>sign</code> (a signature generated from the parameters using RSA/RSA2—AliPay recommends RSA2)</li>
</ul>
<p>AliPay requires you to construct a “string to sign” from parameters and attach <code>sign</code> and <code>sign_type</code> to the request, then validate/verify responses using the AliPay public key.</p>
<h2>High-level integration pattern in SSIS</h2>
<p>Because AliPay signing is mandatory, the most reliable SSIS approach is a two-step pattern:</p>
<ol>
<li><strong>Generate the signature</strong> (RSA2) for the request parameters.</li>
<li><strong>Call the AliPay gateway</strong> from ZappySys (REST API Task or REST API Source), passing the signed parameters.</li>
</ol>
<p>ZappySys components support custom HTTP methods, headers, request bodies, and advanced options—so they work well once you have the signed payload ready.</p>
<h2>Steps</h2>
<h3>Start in the AliPay Sandbox</h3>
<p>AliPay strongly recommends using the sandbox for development and debugging. In the sandbox, you must:</p>
<ul>
<li data-start="668" data-end="697">An AliPay Developer Account</li>
<li data-start="668" data-end="697">An AliPay App ID</li>
<li>Use the sandbox gateway URL</li>
<li data-start="721" data-end="779">RSA2 Private Key (generated in AliPay developer console)</li>
<li data-start="782" data-end="820">AliPay Public Key (for verification)</li>
<li data-start="823" data-end="889">Access to the AliPay Sandbox environment (recommended for testing)</li>
</ul>
<h3>Decide where you will generate the RSA2 signature</h3>
<p>You have three common options:</p>
<ul>
<li><strong>Option A (Recommended): SSIS Script Task (C#) to generate signature</strong><br />
Use a Script Task before the ZappySys call to build parameters and compute <code>sign</code>.</li>
<li><strong>Option B: Use an AliPay SDK in a small helper app</strong><br />
Run it via Execute Process Task to output signed parameters (JSON/text), then pass them to ZappySys.</li>
<li><strong>Option C: Use a signing microservice</strong><br />
SSIS calls your internal service to get <code>sign</code>, then calls AliPay.</li>
</ul>
<p><a href="https://docs.alipayplus.com/alipayplus/alipayplus/api_acq_unified/api_overview?role=ACQP&amp;product=Payment1&amp;version=1.4.6">AliPay’s documentation</a> emphasizes the signature process and verification using the AliPay public key.</p>
<h3>Example: What a signed AliPay request looks like</h3>
<p>AliPay’s gateway model is “parameters + signature.” Conceptually, your final request includes:</p>
<ul>
<li><code>app_id</code></li>
<li><code>method</code> (the API name you’re calling)</li>
<li><code>charset</code> (often <code>utf-8</code>)</li>
<li><code>sign_type</code> (recommended <code>RSA2</code>)</li>
<li><code>timestamp</code></li>
<li><code>version</code></li>
<li><code>biz_content</code> (JSON)</li>
<li><code>sign</code> (computed over the canonicalized parameter string)</li>
</ul>
<p>AliPay documents that <code>sign</code> and <code>sign_type</code> are appended after creating the string to be signed, and verification uses the AliPay public key.</p>
<h3>Configure the ZappySys REST API Task (Control Flow)</h3>
<p>Use this when operating (e.g., creating a payment, refunding, or querying).</p>
<ol>
<li>Drag <strong>ZappySys REST API Web Service Task</strong> into Control Flow.</li>
<li>Set the task:
<ul>
<li><strong>Method:</strong> POST (commonly used with AliPay gateway)</li>
<li><strong>URL:</strong><br />
<pre class="crayon-plain-tag">https://openapi-sandbox.dl.alipaydev.com/gateway.do</pre>
</li>
<li>Headers: use<br />
<pre class="crayon-plain-tag">Content-Type: application/x-www-form-urlencoded</pre>
</li>
<li><strong>Body:</strong> form-encoded parameters; use this format: <em>key1=value1&amp;key2=value2&#8230;</em>
<div>
<pre class="crayon-plain-tag">app_id=YOUR_APP_ID&amp;amp;method=alipay.trade.query&amp;amp;charset=utf-8&amp;amp;sign_type=RSA2&amp;amp;timestamp=2026-02-20 10:00:00&amp;amp;version=1.0&amp;amp;biz_content={&quot;out_trade_no&quot;:&quot;202602200001&quot;}&amp;amp;sign=GENERATED_SIGNATURE</pre>
</div>
</li>
</ul>
</li>
<li>Click <strong>Test Request/Response</strong> to confirm you get a valid JSON response.
<div id="attachment_11739" style="width: 847px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2026/02/Alipay-REST-API.png"><img fetchpriority="high" decoding="async" aria-describedby="caption-attachment-11739" class="size-full wp-image-11739" src="https://zappysys.com/blog/wp-content/uploads/2026/02/Alipay-REST-API.png" alt="" width="837" height="720" srcset="https://zappysys.com/blog/wp-content/uploads/2026/02/Alipay-REST-API.png 837w, https://zappysys.com/blog/wp-content/uploads/2026/02/Alipay-REST-API-300x258.png 300w, https://zappysys.com/blog/wp-content/uploads/2026/02/Alipay-REST-API-768x661.png 768w" sizes="(max-width: 837px) 100vw, 837px" /></a><p id="caption-attachment-11739" class="wp-caption-text">Alipay REST API</p></div></li>
</ol>
<h2>Troubleshooting common AliPay + SSIS issues</h2>
<ul>
<li><strong>invalid-signature / missing-signature</strong>: most often caused by parameter ordering, incorrect URL-encoding, wrong key pair, or using sandbox keys against production (or vice versa).</li>
<li><strong>Wrong gateway</strong>: sandbox and production are fully isolated—ensure your <code>app_id,</code>keys, and gateway host match the environment.</li>
<li><strong>Encoding issues</strong>: confirm UTF-8 everywhere and ensure parameters are encoded exactly once before submission.</li>
<li><strong>Parsing JSON</strong>: use ZappySys JSON Source preview and JSONPath filters to flatten nested objects.</li>
</ul>
<h2>Security best practices</h2>
<ul>
<li>Store private keys securely (SSIS variables protected, encrypted config, or secret vaults).</li>
<li>Do not hardcode secrets in packages.</li>
<li>Use a sandbox for development, then switch to production only after full validation.</li>
</ul>
<h2>Conclusion</h2>
<p>Download <a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">SSIS PowerPack</a> today and see for yourself how easy it is to connect SSIS PowerPack (ZappySys) to AliPay is absolutely achievable once you treat AliPay’s OpenAPI as a <strong>signed gateway integration</strong>. The key is generating a correct <strong>RSA2 signature</strong> for every request, then using ZappySys REST components to send the parameters and parse responses.</p>
<p>&nbsp;</p>
<p><span style="font-size: 14pt;"><strong>Still need help?</strong></span></p>
<p>If the issue persists, please get in touch with our support team:</p>
<ul>
<li><strong>Live Chat:</strong> Open the chat widget <em>(bottom right of this page)</em></li>
<li><strong>Email:</strong> <a href="mailto:support@zappysys.com">support@zappysys.com</a></li>
<li><strong>Support Center</strong>: <a class="inline-onebox" href="https://zappysys.com/support/">Support | ZappySys</a></li>
</ul>
<p>&nbsp;</p>
<p>The post <a href="https://zappysys.com/blog/ssis-tutorial-how-to-connect-to-alipay/">SSIS tutorial: How to connect to AliPay</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SSIS tutorial: How to connect to Swagger</title>
		<link>https://zappysys.com/blog/ssis-tutorial-how-to-connect-to-swagger/</link>
		
		<dc:creator><![CDATA[ZappySys Team]]></dc:creator>
		<pubDate>Fri, 20 Feb 2026 00:11:27 +0000</pubDate>
				<category><![CDATA[REST API Integration]]></category>
		<category><![CDATA[SSIS Components]]></category>
		<category><![CDATA[SSIS JSON Source (File/REST)]]></category>
		<category><![CDATA[SSIS PowerPack]]></category>
		<category><![CDATA[SSIS REST API Task]]></category>
		<category><![CDATA[SSIS Tasks]]></category>
		<guid isPermaLink="false">https://zappysys.com/blog/?p=11710</guid>

					<description><![CDATA[<p>Introduction In this article, we&#8217;ll learn how to integrate a documented API in Swagger with SQL Server Integration Services (SSIS) using ZappySys PowerPack. Swagger enables us to visualize and test REST endpoints, while ZappySys SSIS provides advanced components for consuming APIs and transforming data in ETL processes. Steps Get the Swagger endpoints Before connecting from [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/ssis-tutorial-how-to-connect-to-swagger/">SSIS tutorial: How to connect to Swagger</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Introduction</h2>
<p>In this article, we&#8217;ll learn how to integrate a documented API in Swagger with SQL Server Integration Services (SSIS) using ZappySys PowerPack.</p>
<p>Swagger enables us to visualize and test REST endpoints, while ZappySys SSIS provides advanced components for consuming APIs and transforming data in ETL processes.</p>
<div class="content_block" id="custom_post_widget-2523"><h2><span id="Prerequisites">Prerequisites</span></h2>
Before we perform the steps listed in this article, you will need to make sure the following prerequisites are met:
<ol style="margin-left: 1.5em;">
 	<li><abbr title="SQL Server Integration Services">SSIS</abbr> designer installed. Sometimes 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>
 	<li>Basic knowledge of SSIS package development using <em>Microsoft SQL Server Integration Services</em>.</li>
 	<li>Make sure <span style="text-decoration: underline;"><a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">ZappySys SSIS PowerPack</a></span> is installed (<a href="https://zappysys.com/products/ssis-powerpack/download/" target="_blank" rel="noopener">download it</a>, if you haven't already).</li>
 	<li>(<em>Optional step</em>)<em>.</em> <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>
</ol></div>
<h2><a class="anchor" href="https://community.zappysys.com/t/ssis-tips-download-upload-files-from-azure-data-lake-storage-gen2-adls-v2/746#p-891-steps-2" name="p-891-steps-2" aria-label="Heading link"></a>Steps</h2>
<h3><a class="anchor" href="https://community.zappysys.com/t/ssis-tips-download-upload-files-from-azure-data-lake-storage-gen2-adls-v2/746#p-891-validating-your-azure-storage-account-is-gen2-adls-v2-3" name="p-891-validating-your-azure-storage-account-is-gen2-adls-v2-3" aria-label="Heading link"></a>Get the Swagger endpoints</h3>
<div>Before connecting from SSIS, identify the endpoints you want to use. In this example, we will use the <a href="https://petstore.swagger.io/#/">Petstore Swagger server </a>as a public API reference.</div>
<ol>
<li>Review the server’s endpoint list. In this example, we will explore the <strong>Pet</strong> category.
<div id="attachment_11712" style="width: 604px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-Pet-category.png"><img decoding="async" aria-describedby="caption-attachment-11712" class="size-full wp-image-11712" src="https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-Pet-category.png" alt="" width="594" height="547" srcset="https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-Pet-category.png 594w, https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-Pet-category-300x276.png 300w" sizes="(max-width: 594px) 100vw, 594px" /></a><p id="caption-attachment-11712" class="wp-caption-text">Swagger &#8211; Pet category</p></div></li>
<li>From the list, we can see multiple endpoints and HTTP methods, including <strong>GET</strong>, <strong>POST</strong>, <strong>PUT</strong>, and <strong>DELETE.</strong></li>
<li>Click on an endpoint to expand it. For this example, we will use <strong><strong>Add a new pet to the store.<br />
</strong></strong></p>
<div id="attachment_11714" style="width: 1430px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-Create-a-new-pet.png"><img decoding="async" aria-describedby="caption-attachment-11714" class="size-full wp-image-11714" src="https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-Create-a-new-pet.png" alt="" width="1420" height="742" srcset="https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-Create-a-new-pet.png 1420w, https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-Create-a-new-pet-300x157.png 300w, https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-Create-a-new-pet-1024x535.png 1024w, https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-Create-a-new-pet-768x401.png 768w" sizes="(max-width: 1420px) 100vw, 1420px" /></a><p id="caption-attachment-11714" class="wp-caption-text">Swagger &#8211; Create a new pet</p></div></li>
<li>Click <strong>Try it out</strong>. Swagger will allow you to edit the request body and choose the content type (JSON or XML).</li>
<li>Click <strong>Execute</strong>. Swagger will display
<ul>
<li>The generated request in <strong>cURL</strong> format</li>
<li>The Request URL</li>
<li>The Response body</li>
<li>The HTTP status code</li>
</ul>
</li>
<li>In the Response JSON, we can see the new pet with status code 200, indicating success.</li>
<li>Now, with the <strong>CURL</strong> syntax, we can use that inside our tool.
<div id="attachment_11715" style="width: 1421px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-Create-a-new-pet-CURL.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11715" class="size-full wp-image-11715" src="https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-Create-a-new-pet-CURL.png" alt="" width="1411" height="919" srcset="https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-Create-a-new-pet-CURL.png 1411w, https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-Create-a-new-pet-CURL-300x195.png 300w, https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-Create-a-new-pet-CURL-1024x667.png 1024w, https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-Create-a-new-pet-CURL-768x500.png 768w" sizes="(max-width: 1411px) 100vw, 1411px" /></a><p id="caption-attachment-11715" class="wp-caption-text">Swagger &#8211; Create a new pet CURL</p></div></li>
</ol>
<h3><a class="anchor" href="https://community.zappysys.com/t/ssis-tips-download-upload-files-from-azure-data-lake-storage-gen2-adls-v2/746#p-891-connect-azure-adls-gen2-in-ssis-4" name="p-891-connect-azure-adls-gen2-in-ssis-4" aria-label="Heading link"></a></h3>
<h3>POST request: Create Pet Request</h3>
<ol>
<li>Open Visual Studio and create a new <strong>Integration Services Project</strong>.</li>
<li>After the project is created, locate the <strong>SSIS Toolbox</strong> on the left panel.</li>
<li>Drag and drop the <strong>REST API Task</strong> onto the Control Flow surface and double-click it to configure
<div id="attachment_11713" style="width: 576px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2026/02/Drag-and-Drop-REST-API-Task.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11713" class="size-full wp-image-11713" src="https://zappysys.com/blog/wp-content/uploads/2026/02/Drag-and-Drop-REST-API-Task.png" alt="" width="566" height="279" srcset="https://zappysys.com/blog/wp-content/uploads/2026/02/Drag-and-Drop-REST-API-Task.png 566w, https://zappysys.com/blog/wp-content/uploads/2026/02/Drag-and-Drop-REST-API-Task-300x148.png 300w" sizes="(max-width: 566px) 100vw, 566px" /></a><p id="caption-attachment-11713" class="wp-caption-text">Drag and Drop REST API Task</p></div></li>
<li>Use the cURL generated from Swagger. For reference, you can review our article about converting <a href="https://zappysys.com/blog/using-ssis-curl-syntax-to-ssis-api-task/">cURL to an SSIS API Task</a>.<br />
<pre class="crayon-plain-tag">curl -X 'POST' \
  'https://petstore.swagger.io/v2/pet' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  &quot;id&quot;: 123,
  &quot;category&quot;: {
    &quot;id&quot;: 456,
    &quot;name&quot;: &quot;Friendly&quot;
  },
  &quot;name&quot;: &quot;Zappy&quot;,
  &quot;photoUrls&quot;: [
    &quot;string&quot;
  ],
  &quot;tags&quot;: [
    {
      &quot;id&quot;: 0,
      &quot;name&quot;: &quot;tech&quot;
    }
  ],
  &quot;status&quot;: &quot;available&quot;
}'</pre>
</li>
<li><strong>-X POST</strong> represents the HTTP method. Set the Request Method to <strong>POST</strong>.</li>
<li>Enter the URL from the cURL command.</li>
<li>Each <strong>-H</strong> represents a Header. Add the corresponding headers inside the REST API Task.</li>
<li>The <strong>-d</strong> parameter represents the Body. Paste the JSON payload into the Body section.</li>
<li>Click <strong>Test Request/Response</strong> to validate the configuration.
<div id="attachment_11716" style="width: 1312px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2026/02/SSIS-Create-a-new-pet.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11716" class="size-full wp-image-11716" src="https://zappysys.com/blog/wp-content/uploads/2026/02/SSIS-Create-a-new-pet.png" alt="" width="1302" height="667" srcset="https://zappysys.com/blog/wp-content/uploads/2026/02/SSIS-Create-a-new-pet.png 1302w, https://zappysys.com/blog/wp-content/uploads/2026/02/SSIS-Create-a-new-pet-300x154.png 300w, https://zappysys.com/blog/wp-content/uploads/2026/02/SSIS-Create-a-new-pet-1024x525.png 1024w, https://zappysys.com/blog/wp-content/uploads/2026/02/SSIS-Create-a-new-pet-768x393.png 768w" sizes="(max-width: 1302px) 100vw, 1302px" /></a><p id="caption-attachment-11716" class="wp-caption-text">SSIS &#8211; Create a new pet</p></div></li>
<li>You can use additional components such as <strong>JSON Source</strong> or <strong>XML Source,</strong> depending on how you plan to process the response.</li>
</ol>
<h3>POST request: Upload a file</h3>
<ol>
<li>Next, we will upload an image for the pet we created earlier
<div id="attachment_11717" style="width: 1422px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-upload-image.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11717" class="size-full wp-image-11717" src="https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-upload-image.png" alt="" width="1412" height="680" srcset="https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-upload-image.png 1412w, https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-upload-image-300x144.png 300w, https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-upload-image-1024x493.png 1024w, https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-upload-image-768x370.png 768w" sizes="(max-width: 1412px) 100vw, 1412px" /></a><p id="caption-attachment-11717" class="wp-caption-text">Swagger &#8211; upload image</p></div></li>
<li>Generate the CURL code.<br />
<pre class="crayon-plain-tag">curl -X 'POST' \
  'https://petstore.swagger.io/v2/pet/123/uploadImage' \
  -H 'accept: application/json' \
  -H 'Content-Type: multipart/form-data' \
  -F 'file=@new.jpg;type=image/jpeg'</pre>
</li>
<li>Configure the REST API Task with:
<ul>
<li>Request Method: POST</li>
<li>URL</li>
<li>Headers</li>
<li>File parameter</li>
</ul>
</li>
<li>Check the option <strong>File upload.</strong></li>
<li>Specify the full file path (e.g., <em>file=@D:\Zappysys\new.jpg</em>).</li>
<li>Click Test Request to validate the upload.</li>
<li>You can find an article about <a href="https://zappysys.com/blog/rest-api-file-upload-using-ssis-multi-part-post/" target="_blank" rel="noopener">uploading files here</a>.
<div class="mceTemp"></div>
<div id="attachment_11730" style="width: 1322px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2026/02/SSIS-upload-an-image.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11730" class="size-full wp-image-11730" src="https://zappysys.com/blog/wp-content/uploads/2026/02/SSIS-upload-an-image.png" alt="" width="1312" height="719" srcset="https://zappysys.com/blog/wp-content/uploads/2026/02/SSIS-upload-an-image.png 1312w, https://zappysys.com/blog/wp-content/uploads/2026/02/SSIS-upload-an-image-300x164.png 300w, https://zappysys.com/blog/wp-content/uploads/2026/02/SSIS-upload-an-image-1024x561.png 1024w, https://zappysys.com/blog/wp-content/uploads/2026/02/SSIS-upload-an-image-768x421.png 768w" sizes="(max-width: 1312px) 100vw, 1312px" /></a><p id="caption-attachment-11730" class="wp-caption-text">SSIS &#8211; upload an image</p></div></li>
</ol>
<h3>GET request: Get the Pet information</h3>
<ol>
<li> Now we will get the pet we created earlier. This is the example
<div id="attachment_11724" style="width: 1432px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-get-pet-by-id.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11724" class="size-full wp-image-11724" src="https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-get-pet-by-id.png" alt="" width="1422" height="592" srcset="https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-get-pet-by-id.png 1422w, https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-get-pet-by-id-300x125.png 300w, https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-get-pet-by-id-1024x426.png 1024w, https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-get-pet-by-id-768x320.png 768w" sizes="(max-width: 1422px) 100vw, 1422px" /></a><p id="caption-attachment-11724" class="wp-caption-text">Swagger &#8211; get pet by id</p></div></li>
<li>We generate the CURL<br />
<pre class="crayon-plain-tag">curl -X 'GET' \
  'https://petstore.swagger.io/v2/pet/123' \
  -H 'accept: application/json'</pre>
</li>
<li>Inside the Visual Studio project, drag and drop the <strong>SSIS Data Flow Task</strong> from the SSIS Toolbox. Double-click on the <em>Data Flow Task</em> to see the <em>Data Flow</em> designer.
<div id="attachment_11622" style="width: 472px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2019/08/Drag-and-Drop-SSIS-Data-Flow-Task-from-SSIS-Toolbox.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11622" class="size-full wp-image-11622" src="https://zappysys.com/blog/wp-content/uploads/2019/08/Drag-and-Drop-SSIS-Data-Flow-Task-from-SSIS-Toolbox.png" alt="" width="462" height="157" srcset="https://zappysys.com/blog/wp-content/uploads/2019/08/Drag-and-Drop-SSIS-Data-Flow-Task-from-SSIS-Toolbox.png 462w, https://zappysys.com/blog/wp-content/uploads/2019/08/Drag-and-Drop-SSIS-Data-Flow-Task-from-SSIS-Toolbox-300x102.png 300w" sizes="(max-width: 462px) 100vw, 462px" /></a><p id="caption-attachment-11622" class="wp-caption-text">Drag and Drop SSIS Data Flow Task from SSIS Toolbox</p></div></li>
<li>From the SSIS toolbox, drag and drop a <a title="SSIS API Source" href="https://zappysys.com/products/ssis-powerpack/ssis-json-file-source">JSON Source</a> onto the data flow designer surface, and double-click on it to edit it
<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></li>
<li>We use the method <strong>GET</strong></li>
<li>We enter the URL with the <strong>ID</strong> from the earlier response.</li>
<li>We can use the filter to get the object we need, and now we can check the data.</li>
<li>Preview the data, and you will see the Pet&#8217;s information
<div id="attachment_11725" style="width: 833px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2026/02/SSIS-get-a-pet.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11725" class="size-full wp-image-11725" src="https://zappysys.com/blog/wp-content/uploads/2026/02/SSIS-get-a-pet.png" alt="" width="823" height="889" srcset="https://zappysys.com/blog/wp-content/uploads/2026/02/SSIS-get-a-pet.png 823w, https://zappysys.com/blog/wp-content/uploads/2026/02/SSIS-get-a-pet-278x300.png 278w, https://zappysys.com/blog/wp-content/uploads/2026/02/SSIS-get-a-pet-768x830.png 768w" sizes="(max-width: 823px) 100vw, 823px" /></a><p id="caption-attachment-11725" class="wp-caption-text">SSIS &#8211; get a pet by ID</p></div></li>
</ol>
<h3>PUT request: Update an existing pet</h3>
<ol>
<li>We go to the updated pet example and run the example
<div id="attachment_11721" style="width: 1432px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-update-a-pet.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11721" class="size-full wp-image-11721" src="https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-update-a-pet.png" alt="" width="1422" height="662" srcset="https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-update-a-pet.png 1422w, https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-update-a-pet-300x140.png 300w, https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-update-a-pet-1024x477.png 1024w, https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-update-a-pet-768x358.png 768w" sizes="(max-width: 1422px) 100vw, 1422px" /></a><p id="caption-attachment-11721" class="wp-caption-text">Swagger &#8211; update a pet</p></div></li>
<li>Generate the CURL<br />
<pre class="crayon-plain-tag">curl -X 'PUT' \
  'https://petstore.swagger.io/v2/pet' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  &quot;id&quot;: 0,
  &quot;category&quot;: {
    &quot;id&quot;: 0,
    &quot;name&quot;: &quot;string&quot;
  },
  &quot;name&quot;: &quot;doggie2&quot;,
  &quot;photoUrls&quot;: [
    &quot;string&quot;
  ],
  &quot;tags&quot;: [
    {
      &quot;id&quot;: 0,
      &quot;name&quot;: &quot;string&quot;
    }
  ],
  &quot;status&quot;: &quot;available&quot;
}'</pre>
</li>
<li>Inside the JSON source, we configure the HTTP method to <strong>PUT.</strong></li>
<li>Change the url and the header.</li>
<li>Inside the Body we can change the values from the existing pet.</li>
<li>Test the connection and check the result.
<div id="attachment_11719" style="width: 838px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2026/02/SSIS-update-a-pet.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11719" class="size-full wp-image-11719" src="https://zappysys.com/blog/wp-content/uploads/2026/02/SSIS-update-a-pet.png" alt="" width="828" height="745" srcset="https://zappysys.com/blog/wp-content/uploads/2026/02/SSIS-update-a-pet.png 828w, https://zappysys.com/blog/wp-content/uploads/2026/02/SSIS-update-a-pet-300x270.png 300w, https://zappysys.com/blog/wp-content/uploads/2026/02/SSIS-update-a-pet-768x691.png 768w" sizes="(max-width: 828px) 100vw, 828px" /></a><p id="caption-attachment-11719" class="wp-caption-text">SSIS &#8211; update a pet</p></div></li>
</ol>
<h3>DELETE request: Remove an existing pet</h3>
<ol>
<li>Now we will delete the pet using this example.
<div id="attachment_11722" style="width: 1424px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-delete-a-pet.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11722" class="size-full wp-image-11722" src="https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-delete-a-pet.png" alt="" width="1414" height="588" srcset="https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-delete-a-pet.png 1414w, https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-delete-a-pet-300x125.png 300w, https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-delete-a-pet-1024x426.png 1024w, https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-delete-a-pet-768x319.png 768w" sizes="(max-width: 1414px) 100vw, 1414px" /></a><p id="caption-attachment-11722" class="wp-caption-text">Swagger &#8211; delete a pet</p></div></li>
<li>Generate the CURL to delete the pet<br />
<pre class="crayon-plain-tag">curl -X 'DELETE' \
  'https://petstore.swagger.io/v2/pet/1234' \
  -H 'accept: application/json' \
  -H 'api_key: special-key'</pre>
</li>
<li>Inside the JSON source, configure the HTTP method to <strong>DELETE.</strong></li>
<li>Change the URL to include the pet&#8217;s ID.</li>
<li>Inside the header, we need to insert an API key.</li>
<li>Test the connection, and we will delete the pet.
<div id="attachment_11718" style="width: 838px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2026/02/SSIS-delete-a-pet.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11718" class="size-full wp-image-11718" src="https://zappysys.com/blog/wp-content/uploads/2026/02/SSIS-delete-a-pet.png" alt="" width="828" height="745" srcset="https://zappysys.com/blog/wp-content/uploads/2026/02/SSIS-delete-a-pet.png 828w, https://zappysys.com/blog/wp-content/uploads/2026/02/SSIS-delete-a-pet-300x270.png 300w, https://zappysys.com/blog/wp-content/uploads/2026/02/SSIS-delete-a-pet-768x691.png 768w" sizes="(max-width: 828px) 100vw, 828px" /></a><p id="caption-attachment-11718" class="wp-caption-text">aSSIS &#8211; delete a pet</p></div></li>
</ol>
<h3>Authentication method</h3>
<ol>
<li>Some APIs require authentication. You can configure authentication using an HTTP Connection Manager.</li>
<li>Enter the login URL if required.</li>
<li>Select the credential type (e.g., Basic – Username/Password).</li>
<li>Enter the credentials.</li>
<li>Click OK to save the configuration.</li>
<li>This connection can be reused across multiple REST API Tasks or JSON Sources.</li>
<li>For more details on <a href="https://zappysys.com/blog/how-to-set-base64-encoded-authorization-header-for-http-web-request/" target="_blank" rel="noopener">basic authentication, click here.</a> For <a href="https://zappysys.com/blog/rest-api-authentication-with-oauth-2-0-using-ssis/" target="_blank" rel="noopener">more details on the OAuth connection, click here</a>.
<div id="attachment_11726" style="width: 1430px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-SSIS-basic-authentication.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11726" class="wp-image-11726 size-full" src="https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-SSIS-basic-authentication.png" alt="" width="1420" height="893" srcset="https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-SSIS-basic-authentication.png 1420w, https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-SSIS-basic-authentication-300x189.png 300w, https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-SSIS-basic-authentication-1024x644.png 1024w, https://zappysys.com/blog/wp-content/uploads/2026/02/Swagger-SSIS-basic-authentication-768x483.png 768w" sizes="(max-width: 1420px) 100vw, 1420px" /></a><p id="caption-attachment-11726" class="wp-caption-text">Swagger &#8211; SSIS basic authentication</p></div></li>
</ol>
<div class="mceTemp"></div>
<h2><a class="anchor" href="https://community.zappysys.com/t/ssis-tips-download-upload-files-from-azure-data-lake-storage-gen2-adls-v2/746#p-891-summary-9" name="p-891-summary-9" aria-label="Heading link"></a>Conclusion</h2>
<p>Integrating Swagger-documented APIs with ZappySys SSIS becomes significantly easier when using the generated <strong>cURL</strong> command as a reference. Swagger provides a clear and interactive way to understand API endpoints, request structures, headers, and payload formats, while cURL offers a direct, executable representation of the HTTP request.</p>
<p>By translating the cURL command into the REST API Task or JSON Source configuration, developers can confidently replicate API calls inside SSIS without guesswork. This approach ensures accuracy, reduces troubleshooting time, and provides a consistent workflow for handling GET, POST, PUT, DELETE operations, file uploads, and authentication scenarios.</p>
<p><span style="box-sizing: border-box; margin: 0px; padding: 0px;">Download <a href="https://zappysys.com/products/odbc-powerpack/" target="_blank" rel="noopener">SSIS PowerPack</a> today and see for yourself how easy it is to combine Swagger and ZappySys SSIS, enabling organizations to seamlessly integrate modern REST APIs into enterprise ETL processes and bridge the gap between cloud-based services and traditional SQL Server data platforms.</span></p>
<p><a class="anchor" href="https://community.zappysys.com/t/ssis-tips-download-upload-files-from-azure-data-lake-storage-gen2-adls-v2/746#p-891-still-need-help-10" name="p-891-still-need-help-10" aria-label="Heading link"></a><span style="font-size: 14pt;"><strong>Still need help?</strong></span></p>
<p>If the issue persists, please get in touch with our support team:</p>
<ul>
<li><strong>Live Chat:</strong> Open the chat widget <em>(bottom right of this page)</em></li>
<li><strong>Email:</strong> <a href="mailto:support@zappysys.com">support@zappysys.com</a></li>
<li><strong>Support Center</strong>: <a class="inline-onebox" href="https://zappysys.com/support/">Support | ZappySys</a></li>
</ul>
<p>The post <a href="https://zappysys.com/blog/ssis-tutorial-how-to-connect-to-swagger/">SSIS tutorial: How to connect to Swagger</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to call NetSuite RESTlet API in SSIS / ODBC</title>
		<link>https://zappysys.com/blog/call-netsuite-restlet-ssis-odbc/</link>
		
		<dc:creator><![CDATA[ZappySys]]></dc:creator>
		<pubDate>Mon, 23 May 2022 21:18:19 +0000</pubDate>
				<category><![CDATA[ODBC PowerPack]]></category>
		<category><![CDATA[REST API]]></category>
		<category><![CDATA[REST API Integration]]></category>
		<category><![CDATA[SSIS OAuth Connection]]></category>
		<category><![CDATA[SSIS REST API Task]]></category>
		<category><![CDATA[NetSuite]]></category>
		<category><![CDATA[oauth]]></category>
		<category><![CDATA[oauth1]]></category>
		<category><![CDATA[oauth2]]></category>
		<category><![CDATA[rest api]]></category>
		<guid isPermaLink="false">https://zappysys.com/blog/?p=9657</guid>

					<description><![CDATA[<p>Introduction In our previous post we saw how to read API data in SSIS. This post we will cover how to call NetSuite RESTlet to read / write data in SSIS or ODBC Apps. For demo purpose we will use SSIS PowerPack REST API Task but concepts and many UI elements remain same for ODBC [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/call-netsuite-restlet-ssis-odbc/">How to call NetSuite RESTlet API in SSIS / ODBC</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Introduction</h2>
<p><a href="https://zappysys.com/blog/wp-content/uploads/2022/05/netsuite-logo.png"><img loading="lazy" decoding="async" class=" wp-image-9658 alignleft" src="https://zappysys.com/blog/wp-content/uploads/2022/05/netsuite-logo.png" alt="" width="144" height="114" srcset="https://zappysys.com/blog/wp-content/uploads/2022/05/netsuite-logo.png 309w, https://zappysys.com/blog/wp-content/uploads/2022/05/netsuite-logo-300x238.png 300w" sizes="(max-width: 144px) 100vw, 144px" /></a>In our previous post we saw how to <a href="https://zappysys.com/blog/ssis-read-api-data-load-sql-table/">read API data in SSIS</a>. This post we will cover how to call <a href="https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_N2979684.html">NetSuite RESTlet</a> to read / write data in SSIS or ODBC Apps. For demo purpose we will use <a href="https://zappysys.com/products/ssis-powerpack/ssis-rest-api-web-service-task/">SSIS PowerPack REST API Task</a> but concepts and many UI elements remain same for <a href="https://zappysys.com/products/odbc-powerpack/odbc-json-rest-api-driver/">ODBC JSON Driver</a> too. This article assumes you know how to write Netsuite RESTlet and you have obtained Credentials to call RESTlet from extranal app.</p>
<h2></h2>
<h2></h2>
<h2>What is NetSuite RESTlets</h2>
<p>NetSuite added a really nice feature to expose business data and workflows as API by writing Javascript functions which they call it <strong>RESTlets</strong>. You can secure and customize these restlets as per your need.</p>
<p>You can automate CRUD (Create /Read / Write / Delete) operations in NetSuite by writing special functions in JavaScript and expose those functions as API URL which can be called by any external Systems (i.e. SSIS Packages , ODBC Apps like Power BI, Informatica, SSRS).</p>
<p>RESTlet can be secured few ways such as OAuth 1.0 and OAuth 2.0 authentication. We will cover both approach briefly in this article. You can choose any one as per your need</p>
<div class="content_block" id="custom_post_widget-2523"><h2><span id="Prerequisites">Prerequisites</span></h2>
Before we perform the steps listed in this article, you will need to make sure the following prerequisites are met:
<ol style="margin-left: 1.5em;">
 	<li><abbr title="SQL Server Integration Services">SSIS</abbr> designer installed. Sometimes 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>
 	<li>Basic knowledge of SSIS package development using <em>Microsoft SQL Server Integration Services</em>.</li>
 	<li>Make sure <span style="text-decoration: underline;"><a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">ZappySys SSIS PowerPack</a></span> is installed (<a href="https://zappysys.com/products/ssis-powerpack/download/" target="_blank" rel="noopener">download it</a>, if you haven't already).</li>
 	<li>(<em>Optional step</em>)<em>.</em> <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>
</ol></div>
<h2>Creating NetSuite RESTlet / Obtain OAuth Credentials (Client ID and Secret)</h2>
<p>Below video shows how to obtain necessary credentials to call Netsuites API (RESTlet).</p>
<p>At mark 4:30 seconds it will show you How to use OAuth 2.0 for calling RESTlet</p>
<a href="https://zappysys.com/blog/call-netsuite-restlet-ssis-odbc/"><img decoding="async" src="https://zappysys.com/blog/wp-content/plugins/wp-youtube-lyte/lyteCache.php?origThumbUrl=%2F%2Fi.ytimg.com%2Fvi%2FMAOMQp5dh0U%2Fhqdefault.jpg" alt="YouTube Video"></a><br /><br /></p>
<p>&nbsp;</p>
<h2>Create NetSuite RESTlet Connection</h2>
<p>There are few ways to authenticate NetSuite RESTlet. If you are using ZappySys Products then it makes it super easy to use either approach. Lets look at both approaches.</p>
<h3>Using OAuth 2.0 (Recommended)</h3>
<p>As per above video if you obtained Client ID and Secret for OAuth 2.0 you can follow below steps to configure OAuth connection to call RESTlet.</p>
<p>What you need to use OAuth 2.0.</p>
<ul>
<li>Your Account ID (it goes in URL)</li>
<li>Your Client ID and Secret (Obtained from Netsuite Portal) &#8211; See above video Mark 04:30</li>
<li>Register Redirect URL in NetSuite portal (we recommend you use <strong>https://zappysys.com/oauth</strong> as call back Url for Automatic Code extraction)</li>
</ul>
<p><strong>Steps to configure OAuth Connection</strong></p>
<ol>
<li>Right click on Connection Panel and choose Choose &#8220;New Connection..&#8221;. Select <strong>ZS-OAUTH</strong> type<br />
<strong><strong><br />
</strong></strong></p>
<div id="attachment_1569" style="width: 687px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2017/07/ssis-oauth-create-new-connection.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1569" class="size-full wp-image-1569" src="https://zappysys.com/blog/wp-content/uploads/2017/07/ssis-oauth-create-new-connection.png" alt="Create new SSIS OAuth API Connection Manager" width="677" height="220" srcset="https://zappysys.com/blog/wp-content/uploads/2017/07/ssis-oauth-create-new-connection.png 677w, https://zappysys.com/blog/wp-content/uploads/2017/07/ssis-oauth-create-new-connection-300x97.png 300w" sizes="(max-width: 677px) 100vw, 677px" /></a><p id="caption-attachment-1569" class="wp-caption-text">Create new SSIS OAuth API Connection Manager</p></div>
<p>&nbsp;</p>
<p>&nbsp;</li>
<li> Enter following things<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
<strong>On General Tab<br />
</strong>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
ClientID and Secret: <strong>&lt;get it from NetSuite&gt;</strong><br />
Authorization URL: <strong>https://&lt;accountID&gt;.</strong><a href="http://app.netsuite.com/app/login/oauth2/authorize.nl" target="_blank" rel="noopener noreferrer"><strong>app.netsuite.com/app/login/oauth2/authorize.nl</strong></a><br />
Token URL: <strong>https://&lt;accountID&gt;.suitetalk.api.netsuite.com/services/rest/auth/oauth2/v1/token<br />
</strong>Scope: <strong><strong><strong>restlet</strong></strong></strong></p>
<div id="attachment_9660" style="width: 642px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2022/05/netsuite-oauth2-api-connection.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-9660" class="size-full wp-image-9660" src="https://zappysys.com/blog/wp-content/uploads/2022/05/netsuite-oauth2-api-connection.png" alt="Configure NetSuite OAuth 2.0 Connection for API call" width="632" height="418" srcset="https://zappysys.com/blog/wp-content/uploads/2022/05/netsuite-oauth2-api-connection.png 632w, https://zappysys.com/blog/wp-content/uploads/2022/05/netsuite-oauth2-api-connection-300x198.png 300w" sizes="(max-width: 632px) 100vw, 632px" /></a><p id="caption-attachment-9660" class="wp-caption-text">Configure NetSuite OAuth 2.0 Connection for API call</p></div>
<p>&nbsp;</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
<strong>On Advanced Tab<br />
</strong>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Callback / Redirect URL:  <strong>https://zappysys.com/oauth </strong> (this must be entered same way in NetSuite Portal)</p>
<div id="attachment_9659" style="width: 563px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2022/05/oauth2-connection-callback-redirect-url.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-9659" class="size-full wp-image-9659" src="https://zappysys.com/blog/wp-content/uploads/2022/05/oauth2-connection-callback-redirect-url.png" alt="OAuth2 Connection - Callback / Redirect URL" width="553" height="201" srcset="https://zappysys.com/blog/wp-content/uploads/2022/05/oauth2-connection-callback-redirect-url.png 553w, https://zappysys.com/blog/wp-content/uploads/2022/05/oauth2-connection-callback-redirect-url-300x109.png 300w" sizes="(max-width: 553px) 100vw, 553px" /></a><p id="caption-attachment-9659" class="wp-caption-text">OAuth2 Connection &#8211; Callback / Redirect URL</p></div></li>
<li>Now go back to General Tab and click <strong>Generate Token</strong> button</li>
<li>Follow login screen and try to finish the flow. At the end it will generate Tokens and populate on UI</li>
<li>Click OK to save</li>
</ol>
<h3>Using OAuth 1.0</h3>
<p>Another approach is use OAuth 1.0 (Older version). If you have enabled OAuth 1.0 in NetSuite then follow below steps (Create connection is same as before).</p>
<ol>
<li>Setup General Tab and Advanced Tab as below.<br />
On <strong>==== </strong><strong>General Tab====</strong>:<br />
Enter ClientID, ClientSecret, AccessToken, AccessToken Secret<br />
On <strong>==== </strong><strong>Advanced Tab ====</strong>:<br />
Check <strong>Do Not Include Empty Key/Value Pairs</strong><br />
Select Signature Method as <strong>HMAC-SHA256</strong><br />
For Extra Token Attribute enter <strong>realm=&lt;your-account-number&gt;_SB1</strong></li>
<li>Click OK to Save</li>
</ol>
<p><a href="https://zappysys.com/blog/wp-content/uploads/2022/05/netsuite-oauth1-api-connection.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-9662" src="https://zappysys.com/blog/wp-content/uploads/2022/05/netsuite-oauth1-api-connection.png" alt="" width="495" height="363" srcset="https://zappysys.com/blog/wp-content/uploads/2022/05/netsuite-oauth1-api-connection.png 495w, https://zappysys.com/blog/wp-content/uploads/2022/05/netsuite-oauth1-api-connection-300x220.png 300w" sizes="(max-width: 495px) 100vw, 495px" /></a></p>
<p><a href="https://zappysys.com/blog/wp-content/uploads/2022/05/netsuite-oauth1-api-connection_realm_accountnumber.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-9661" src="https://zappysys.com/blog/wp-content/uploads/2022/05/netsuite-oauth1-api-connection_realm_accountnumber.png" alt="" width="495" height="363" srcset="https://zappysys.com/blog/wp-content/uploads/2022/05/netsuite-oauth1-api-connection_realm_accountnumber.png 495w, https://zappysys.com/blog/wp-content/uploads/2022/05/netsuite-oauth1-api-connection_realm_accountnumber-300x220.png 300w" sizes="(max-width: 495px) 100vw, 495px" /></a></p>
<h2></h2>
<h2>Call NetSuite RESTlet in SSIS</h2>
<ol>
<li>Create a new SSIS Package</li>
<li>Drag REST API Task from SSIS Toolbox<img decoding="async" class="figureimage" title="SSIS REST Api Web Service Task - Drag and Drop" src="https://zappysys.com/onlinehelp/ssis-powerpack/scr/images/rest-api-task/ssis-rest-api-web-service-task-drag.png" alt="SSIS REST Api Task - Drag and Drop" /></li>
<li>Double click the Task to configure</li>
<li>Select <strong>URL from Connection </strong></li>
<li>From Connection dropdown select OAuth connection we created in the earlier section (either OAuth 1 or OAuth 2)</li>
<li>Enter the URL as below. Assuming you copied URL from NetSuite Replace script ID and account number<br />
<pre class="crayon-plain-tag">https://&lt;account-number&gt;-sb1.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=&lt;scriptid&gt;&amp;deploy=1</pre>Enter <strong>&lt;account-number&gt;</strong><br />
Enter <strong>&lt;scriptid&gt;</strong></li>
<li>Change Method to POST if your script supports Parameters (Else you can supply id=xxxx and recordtype=xxxxx in the URL for GET request)</li>
<li>If its POST request then chnage ContentType to ApplicationJSON (application/json)</li>
<li>Enter your Input in the body. In below example our RESTlet takes sql query as input so we enter just one parameter named query but you can have different parameter(s)<br />
<pre class="crayon-plain-tag">Syntax:  { param1_name : &lt;value&gt; , param2_name : &lt;value&gt; ....  }</pre>
</li>
<li>Now click Test see everything works
<div id="attachment_9663" style="width: 1178px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2022/05/calling-netsuite-restlet-api-ssis.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-9663" class="size-full wp-image-9663" src="https://zappysys.com/blog/wp-content/uploads/2022/05/calling-netsuite-restlet-api-ssis.png" alt="Calling NetSuite RESTlet in SSIS (Using REST API Task)" width="1168" height="928" srcset="https://zappysys.com/blog/wp-content/uploads/2022/05/calling-netsuite-restlet-api-ssis.png 1168w, https://zappysys.com/blog/wp-content/uploads/2022/05/calling-netsuite-restlet-api-ssis-300x238.png 300w, https://zappysys.com/blog/wp-content/uploads/2022/05/calling-netsuite-restlet-api-ssis-768x610.png 768w, https://zappysys.com/blog/wp-content/uploads/2022/05/calling-netsuite-restlet-api-ssis-1024x814.png 1024w" sizes="(max-width: 1168px) 100vw, 1168px" /></a><p id="caption-attachment-9663" class="wp-caption-text">Calling NetSuite RESTlet in SSIS (Using REST API Task)</p></div></li>
</ol>
<p>&nbsp;</p>
<h2>Conclusion</h2>
<p>We saw how easy it is to call NetSuite RESTlets or other NetSuite API in SSIS / other BI Apps using ODBC Drivers provided by ZappySys. <a href="https://zappysys.com/products/ssis-powerpack/download/">Download SSIS PowerPack</a> and try your self see how easy it is to consume virtually any API in SSIS.</p>
<p>The post <a href="https://zappysys.com/blog/call-netsuite-restlet-ssis-odbc/">How to call NetSuite RESTlet API in SSIS / ODBC</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Download Gmail Attachment in SSIS</title>
		<link>https://zappysys.com/blog/download-gmail-attachment-in-ssis/</link>
		
		<dc:creator><![CDATA[ZappySys Team]]></dc:creator>
		<pubDate>Wed, 30 Dec 2020 18:29:57 +0000</pubDate>
				<category><![CDATA[JSON File / REST API Driver]]></category>
		<category><![CDATA[REST API Integration]]></category>
		<category><![CDATA[attachment]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[ssis]]></category>
		<category><![CDATA[varbinary]]></category>
		<guid isPermaLink="false">https://zappysys.com/blog/?p=9207</guid>

					<description><![CDATA[<p>Introduction Downloading Gmail Attachments in SSIS is always a little more difficult than working with simple text or numeric columns. If you are not an SSIS expert, doing it for the first time may be challenging. That is why we created this article for you. This is a common request we receive, so we are [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/download-gmail-attachment-in-ssis/">Download Gmail Attachment in SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Introduction</h2>
<div class="su-note"  style="border-color:#e5dd9d;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:#fff7b7;border-color:#ffffff;color:#333333;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;"><strong>UPDATE:</strong> ZappySys has released a brand new <a href="https://zappysys.com/api/integration-hub/gmail-connector/ssis" target="_blank" rel="noopener">Gmail Connector for SSIS</a>, which makes it much simpler to <strong>download attachments, read / search Emails, users, mail folders, send emails, and more 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.</div></div>
<p>Downloading Gmail Attachments in SSIS is always a little more difficult than working with simple text or numeric columns. If you are not an SSIS expert, doing it for the first time may be challenging. That is why we created this article for you. This is a common request we receive, so we are bringing this article to you.</p>
<p>Gmail is the most popular email service in the world, and it can be helpful to automate and get valuable information from it. We will connect to Gmail with the REST API. For that, if you are not an experienced user of the REST API, do not worry. This article is for you. We will provide simple steps for the connection.</p>
<h2>Requirements</h2>
<p>To do it, we will need the following components:</p>
<ol>
<li><a href="https://docs.microsoft.com/en-us/sql/ssdt/previous-releases-of-sql-server-data-tools-ssdt-and-ssdt-bi?view=sql-server-ver15">SSDT for SSIS</a> must be installed on your computer</li>
<li><a href="https://zappysys.com/products/ssis-powerpack/download/">ZappySys SSIS Powerpack</a> should be installed. This Powerpack Plugin includes connectors to Gmail via the REST API.</li>
</ol>
<p>&nbsp;</p>
<h2>Getting Started</h2>
<h3>Creating the connection</h3>
<ol>
<li>First of all, in SSDT, create a new SSIS project</li>
<li>To create a connection in SSDT, open the Connection Manager and select New Connection.
<div id="attachment_11671" style="width: 732px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2020/12/Create-a-new-connection.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11671" class="wp-image-11671 size-full" src="https://zappysys.com/blog/wp-content/uploads/2020/12/Create-a-new-connection.png" alt="Create a new connection" width="722" height="229" srcset="https://zappysys.com/blog/wp-content/uploads/2020/12/Create-a-new-connection.png 722w, https://zappysys.com/blog/wp-content/uploads/2020/12/Create-a-new-connection-300x95.png 300w, https://zappysys.com/blog/wp-content/uploads/2020/12/Create-a-new-connection-720x229.png 720w" sizes="(max-width: 722px) 100vw, 722px" /></a><p id="caption-attachment-11671" class="wp-caption-text">Create a new connection</p></div></li>
<li>Select the ZS OAuth connection. This is a special connection included with the <a href="https://zappysys.com/products/ssis-powerpack/download/">ZS.<br />
SSIS PowerPack</a> installer that we will use to connect to Gmail.</p>
<div id="attachment_11676" style="width: 488px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2020/12/Select-ZS-OAuth-connector.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11676" class="wp-image-11676 size-full" src="https://zappysys.com/blog/wp-content/uploads/2020/12/Select-ZS-OAuth-connector.png" alt="Select ZS-OAuth connector" width="478" height="447" srcset="https://zappysys.com/blog/wp-content/uploads/2020/12/Select-ZS-OAuth-connector.png 478w, https://zappysys.com/blog/wp-content/uploads/2020/12/Select-ZS-OAuth-connector-300x281.png 300w" sizes="(max-width: 478px) 100vw, 478px" /></a><p id="caption-attachment-11676" class="wp-caption-text">Select ZS-OAuth connector</p></div>
<div class="mceTemp"></div>
</li>
<li>In the ZS OAuth connection, select the Google API OAuth Provider and specify the following credentials and scope permissions:
<div id="attachment_11677" style="width: 713px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2020/12/SSIS-Gmail-connection-1.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11677" class="size-full wp-image-11677" src="https://zappysys.com/blog/wp-content/uploads/2020/12/SSIS-Gmail-connection-1.png" alt="SSIS Gmail connection" width="703" height="674" srcset="https://zappysys.com/blog/wp-content/uploads/2020/12/SSIS-Gmail-connection-1.png 703w, https://zappysys.com/blog/wp-content/uploads/2020/12/SSIS-Gmail-connection-1-300x288.png 300w" sizes="(max-width: 703px) 100vw, 703px" /></a><p id="caption-attachment-11677" class="wp-caption-text">SSIS Gmail connection</p></div>
<pre class="crayon-plain-tag">https://mail.google.com/
https://www.googleapis.com/auth/gmail.modify
https://www.googleapis.com/auth/gmail.readonly
https://www.googleapis.com/auth/gmail.addons.current.message.readonly
https://www.googleapis.com/auth/gmail.addons.current.message.action</pre>
</li>
</ol>
<h3>Creating the package to download Gmail attachments in SSIS</h3>
<ol>
<li>First of all, drag and drop the Data Flow Task from the SSIS Toolbox and double-click it<br />
to edit.</p>
<div id="attachment_11622" style="width: 472px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2019/08/Drag-and-Drop-SSIS-Data-Flow-Task-from-SSIS-Toolbox.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11622" class="wp-image-11622 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/08/Drag-and-Drop-SSIS-Data-Flow-Task-from-SSIS-Toolbox.png" alt="" width="462" height="157" srcset="https://zappysys.com/blog/wp-content/uploads/2019/08/Drag-and-Drop-SSIS-Data-Flow-Task-from-SSIS-Toolbox.png 462w, https://zappysys.com/blog/wp-content/uploads/2019/08/Drag-and-Drop-SSIS-Data-Flow-Task-from-SSIS-Toolbox-300x102.png 300w" sizes="(max-width: 462px) 100vw, 462px" /></a><p id="caption-attachment-11622" class="wp-caption-text">Drag and Drop SSIS Data Flow Task from SSIS Toolbox</p></div></li>
<li>Secondly, in the Data Flow, we will use the JSON Source to connect to Gmail and get the attachments. JSON Source is a ZappySys component used now only to connect to JSON files, but also to connect to REST API Servers that support JSON. In this case, Gmail REST API can send information in JSON Format. Use the connection created before.</li>
<li>Basically, we need to specify the URL of the Gmail attachment. In Gmail, the email attachment is inside the message. Then you need to specify the <em>message-id</em> and the Gmail <em>attachment-id</em> like this:
<div id="attachment_11678" style="width: 838px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2020/12/Zappysys-JSON-source-Gmail-attachments-configuration.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11678" class="size-full wp-image-11678" src="https://zappysys.com/blog/wp-content/uploads/2020/12/Zappysys-JSON-source-Gmail-attachments-configuration.png" alt="Zappysys JSON source Gmail attachments configuration" width="828" height="717" srcset="https://zappysys.com/blog/wp-content/uploads/2020/12/Zappysys-JSON-source-Gmail-attachments-configuration.png 828w, https://zappysys.com/blog/wp-content/uploads/2020/12/Zappysys-JSON-source-Gmail-attachments-configuration-300x260.png 300w, https://zappysys.com/blog/wp-content/uploads/2020/12/Zappysys-JSON-source-Gmail-attachments-configuration-768x665.png 768w" sizes="(max-width: 828px) 100vw, 828px" /></a><p id="caption-attachment-11678" class="wp-caption-text">Zappysys JSON source Gmail attachments configuration</p></div>
<pre class="crayon-plain-tag">https://www.googleapis.com/gmail/v1/users/me/messages/{{User::email_id}}/attachments/{{User::attachment_id}}</pre>
</li>
<li>Now, in the go-to columns tab, set the data type to DT_IMAGE and increase the length of the other columns&#8217; DT_WSTR fields by 1000 and 1500. We set <pre class="crayon-plain-tag">contentBytes</pre> to the <pre class="crayon-plain-tag">DT_IMAGE</pre>  datatype, it&#8217;s like <pre class="crayon-plain-tag">varbinary(MAX)</pre>
<div id="attachment_11675" style="width: 836px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2020/12/JSON-Source-Columns-Tab-attachment-datatype.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11675" class="size-full wp-image-11675" src="https://zappysys.com/blog/wp-content/uploads/2020/12/JSON-Source-Columns-Tab-attachment-datatype.png" alt="JSON Source Columns Tab - attachment datatype" width="826" height="331" srcset="https://zappysys.com/blog/wp-content/uploads/2020/12/JSON-Source-Columns-Tab-attachment-datatype.png 826w, https://zappysys.com/blog/wp-content/uploads/2020/12/JSON-Source-Columns-Tab-attachment-datatype-300x120.png 300w, https://zappysys.com/blog/wp-content/uploads/2020/12/JSON-Source-Columns-Tab-attachment-datatype-768x308.png 768w" sizes="(max-width: 826px) 100vw, 826px" /></a><p id="caption-attachment-11675" class="wp-caption-text">JSON Source Columns Tab &#8211; attachment datatype</p></div></li>
<li>Next, we will use the derived column to set the path to the local folder where the attachment will be stored. The derived column will be used to set the local path for the attachment. Make sure to specify valid paths with double backslashes, since backslashes are special characters. The derived column is a special transformation component that creates new columns. <a href="https://docs.microsoft.com/en-us/sql/integration-services/expressions/integration-services-ssis-expressions?view=sql-server-ver15">SSIS expressions</a>.
<div id="attachment_11672" style="width: 798px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2020/12/Derived-columns-Gmail-attachment.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11672" class="size-full wp-image-11672" src="https://zappysys.com/blog/wp-content/uploads/2020/12/Derived-columns-Gmail-attachment.png" alt="Derived columns - Gmail attachment" width="788" height="624" srcset="https://zappysys.com/blog/wp-content/uploads/2020/12/Derived-columns-Gmail-attachment.png 788w, https://zappysys.com/blog/wp-content/uploads/2020/12/Derived-columns-Gmail-attachment-300x238.png 300w, https://zappysys.com/blog/wp-content/uploads/2020/12/Derived-columns-Gmail-attachment-768x608.png 768w" sizes="(max-width: 788px) 100vw, 788px" /></a><p id="caption-attachment-11672" class="wp-caption-text">Derived columns &#8211; Gmail attachment file path</p></div></li>
<li>Also, we will require the Export column to download into a file. This component is specially used to get images or binary files into the file system.
<div id="attachment_11673" style="width: 763px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2020/12/Export-columns-transformation-Gmail-attachment.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11673" class="size-full wp-image-11673" src="https://zappysys.com/blog/wp-content/uploads/2020/12/Export-columns-transformation-Gmail-attachment.png" alt="Export columns transformation - Gmail attachment" width="753" height="637" srcset="https://zappysys.com/blog/wp-content/uploads/2020/12/Export-columns-transformation-Gmail-attachment.png 753w, https://zappysys.com/blog/wp-content/uploads/2020/12/Export-columns-transformation-Gmail-attachment-300x254.png 300w" sizes="(max-width: 753px) 100vw, 753px" /></a><p id="caption-attachment-11673" class="wp-caption-text">Export columns transformation &#8211; Gmail attachment</p></div></li>
<li>Finally, we will use the <a href="https://zappysys.com/blog/ssis-trash-destination-dummy-data-source-example/">Trash destination</a> to get the attachment and finish the flow. This one is also a ZappySys component ubiquitous.</li>
<li>Your package should be something like this:
<div id="attachment_11674" style="width: 306px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2020/12/Final-Result-Gmail-attachment.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11674" class="size-full wp-image-11674" src="https://zappysys.com/blog/wp-content/uploads/2020/12/Final-Result-Gmail-attachment.png" alt="Final Result - Gmail attachment" width="296" height="320" srcset="https://zappysys.com/blog/wp-content/uploads/2020/12/Final-Result-Gmail-attachment.png 296w, https://zappysys.com/blog/wp-content/uploads/2020/12/Final-Result-Gmail-attachment-278x300.png 278w" sizes="(max-width: 296px) 100vw, 296px" /></a><p id="caption-attachment-11674" class="wp-caption-text">Final Result &#8211; Gmail attachment</p></div></li>
<li>The next step is to run it and test it.</li>
<li>If everything is fine, we will be able to see the file in your system.</li>
</ol>
<h2>Conclusion</h2>
<p>In conclusion, we learned how to download Gmail attachments in SSIS. Basically, you need to use the ZappySys JSON Source to connect to Gmail via the REST API, then use the derived column component to specify the path to store the attachment. The next step is to use the Export column component to export the attachment. Finally, the ZS Trash destination is the attachment&#8217;s destination. If you liked this article, do not hesitate to continue testing and using <a href="https://zappysys.com/">ZappySys PowerPack for SSIS.</a></p>
<h2>API Connector</h2>
<p>Here are a few examples with our <a href="https://zappysys.com/api/integration-hub/gmail-connector/ssis">API connector for Gmail </a></p>
<div id="attachment_11670" style="width: 992px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2020/12/API-connector-Gmail-get-message-attachments.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11670" class="size-full wp-image-11670" src="https://zappysys.com/blog/wp-content/uploads/2020/12/API-connector-Gmail-get-message-attachments.png" alt="API connector - Gmail get message attachments" width="982" height="684" srcset="https://zappysys.com/blog/wp-content/uploads/2020/12/API-connector-Gmail-get-message-attachments.png 982w, https://zappysys.com/blog/wp-content/uploads/2020/12/API-connector-Gmail-get-message-attachments-300x209.png 300w, https://zappysys.com/blog/wp-content/uploads/2020/12/API-connector-Gmail-get-message-attachments-768x535.png 768w" sizes="(max-width: 982px) 100vw, 982px" /></a><p id="caption-attachment-11670" class="wp-caption-text">API connector &#8211; Gmail get message attachments</p></div>
<div id="attachment_11669" style="width: 992px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2020/12/API-connector-Gmail-download-message-attachments.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11669" class="size-full wp-image-11669" src="https://zappysys.com/blog/wp-content/uploads/2020/12/API-connector-Gmail-download-message-attachments.png" alt="API connector - Gmail download message attachments" width="982" height="684" srcset="https://zappysys.com/blog/wp-content/uploads/2020/12/API-connector-Gmail-download-message-attachments.png 982w, https://zappysys.com/blog/wp-content/uploads/2020/12/API-connector-Gmail-download-message-attachments-300x209.png 300w, https://zappysys.com/blog/wp-content/uploads/2020/12/API-connector-Gmail-download-message-attachments-768x535.png 768w" sizes="(max-width: 982px) 100vw, 982px" /></a><p id="caption-attachment-11669" class="wp-caption-text">API connector &#8211; Gmail download message attachments</p></div>
<p>&nbsp;</p>
<p>The post <a href="https://zappysys.com/blog/download-gmail-attachment-in-ssis/">Download Gmail Attachment in SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Read API data in SSIS and Load into SQL Table</title>
		<link>https://zappysys.com/blog/ssis-read-api-data-load-sql-table/</link>
		
		<dc:creator><![CDATA[ZappySys]]></dc:creator>
		<pubDate>Fri, 25 Sep 2020 17:35:17 +0000</pubDate>
				<category><![CDATA[REST API Integration]]></category>
		<category><![CDATA[SSIS Components]]></category>
		<category><![CDATA[SSIS CSV Source]]></category>
		<category><![CDATA[SSIS JSON Source (File/REST)]]></category>
		<category><![CDATA[SSIS XML Source (File / SOAP)]]></category>
		<category><![CDATA[oauth]]></category>
		<guid isPermaLink="false">https://zappysys.com/blog/?p=9141</guid>

					<description><![CDATA[<p>Introduction If you have need to integrate REST API in SSIS (i.e. fetch JSON, XML, CSV via HTTP call) and wondering how to Read API data in SSIS and Load into SQL DB (i.e. SQL Server, MySQL, Oracle) then you are at the right place. In this article we will cover simple step by step [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/ssis-read-api-data-load-sql-table/">How to Read API data in SSIS and Load into SQL Table</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Introduction</h2>
<p><a href="https://zappysys.com/blog/wp-content/uploads/2017/09/api-180x180.png"><img loading="lazy" decoding="async" class=" wp-image-1854 alignleft" src="https://zappysys.com/blog/wp-content/uploads/2017/09/api-180x180.png" alt="" width="109" height="109" srcset="https://zappysys.com/blog/wp-content/uploads/2017/09/api-180x180.png 180w, https://zappysys.com/blog/wp-content/uploads/2017/09/api-180x180-150x150.png 150w" sizes="(max-width: 109px) 100vw, 109px" /></a>If you have need to integrate REST API in SSIS (i.e. fetch JSON, XML, CSV via HTTP call) and wondering how to Read API data in SSIS and Load into SQL DB (i.e. SQL Server, MySQL, Oracle) then you are at the right place.</p>
<p>In this article we will cover simple step by step approach how to achieve API integration in few clicks. For detailed introduction please refer to our <a href="https://zappysys.com/blog/call-rest-api-using-ssis-web-service-task/" target="_blank" rel="noopener">previous article</a>.</p>
<p>In next few sections we will cover the following SSIS Components to read data from API like a Table (Parse in Rows / Column). Our instructions will be mostly for JSON Format but concepts are same for other formats (i.e. XML / CSV).</p>
<div class="su-table su-table-alternate">
<table>
<colgroup>
<col style="vertical-align: top" width="100" />
<col style="vertical-align: top" /></colgroup>
<tbody>
<tr>
<td><img decoding="async" style="width: 72px;height: 72px" src="//zappysys.com/images/ssis-powerpack/SSIS-Json-Source-Adapter.png" alt="Custom SSIS Components - Json Source" /></td>
<td style="vertical-align: top"><a href="//zappysys.com/products/ssis-powerpack/ssis-json-file-source/">JSON Source Connector</a> (Read from REST API, JSON File or OData Service): Use this dataflow component when you have to <strong>fetch data from REST API webservice like a table</strong>. This component allows you to extract JSON data from webservice and de-normalize nested structure so you can save to Relational database such as SQL Server or any other target (Oracle, FlatFile, Excel, MySQL). This component also supports reading local JSON files or direct JSON string (Wildcard pattern supported too e.g. c:\data\file*.json).</td>
</tr>
<tr>
<td><img decoding="async" style="width: 72px;height: 72px" src="//zappysys.com/images/ssis-powerpack/ssis-xml-source.png" alt="Custom SSIS Components - XML Source (Read File/SOAP/REST Web Service)" /></td>
<td style="vertical-align: top"><a href="//zappysys.com/products/ssis-powerpack/ssis-xml-source/">XML Source Connector</a> (SOAP, File, REST) : Use this dataflow component when you have to fetch data from XML or SOAP webservice and consume data like a table. This component allows you to extract data from webservice and save to SQL Server or any other target (Oracle, FlatFile, Excel, MySQL). This component also supports reading local XML files or direct XML string.</td>
</tr>
<tr>
<td><img loading="lazy" decoding="async" class="alignnone" style="width: 72px;height: 72px" src="https://zappysys.com/onlinehelp/ssis-powerpack/scr/images/csv-source/ssis-csv-file-source.png" alt="Custom SSIS Components - CSV Source (Read File/REST API)" width="128" height="128" /></td>
<td style="vertical-align: top"><a href="https://zappysys.com/products/ssis-powerpack/ssis-csv-file-source-flat-file-web-api/">CSV Source Connector</a> (File, REST) : Use this dataflow component when you have to fetch data from File or REST API which returns data in CSV format . This component allows you to extract data from webservice and save to SQL Server or any other target (Oracle, FlatFile, Excel, MySQL). This component also supports reading local CSV files or direct CSV string.</td>
</tr>
</tbody>
</table>
</div>
<p>There are few more API components not discussed in this articles. They are <a href="https://zappysys.com/products/ssis-powerpack/ssis-rest-api-web-service-task/" target="_blank" rel="noopener">REST API Task</a> (no Parser &#8211; Just raw API calls) and <a href="https://zappysys.com/products/ssis-powerpack/ssis-web-api-destination-connector/" target="_blank" rel="noopener">Web API Destination</a> (Write / Send Data To API / Delete rows). They both have different use case to check them see it fits in your need.</p>
<div class="content_block" id="custom_post_widget-2523"><h2><span id="Prerequisites">Prerequisites</span></h2>
Before we perform the steps listed in this article, you will need to make sure the following prerequisites are met:
<ol style="margin-left: 1.5em;">
 	<li><abbr title="SQL Server Integration Services">SSIS</abbr> designer installed. Sometimes 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>
 	<li>Basic knowledge of SSIS package development using <em>Microsoft SQL Server Integration Services</em>.</li>
 	<li>Make sure <span style="text-decoration: underline;"><a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">ZappySys SSIS PowerPack</a></span> is installed (<a href="https://zappysys.com/products/ssis-powerpack/download/" target="_blank" rel="noopener">download it</a>, if you haven't already).</li>
 	<li>(<em>Optional step</em>)<em>.</em> <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>
</ol></div>
<h2>Video Tutorial</h2>
<h2><a href="https://zappysys.com/blog/ssis-read-api-data-load-sql-table/"><img decoding="async" src="https://zappysys.com/blog/wp-content/plugins/wp-youtube-lyte/lyteCache.php?origThumbUrl=%2F%2Fi.ytimg.com%2Fvi%2FaO8cVRyCBWw%2Fhqdefault.jpg" alt="YouTube Video"></a><br /><br /></h2>
<h2>Step-By-Step &#8211; Read API data in SSIS using JSON / XML / CSV Source</h2>
<p>In this section you will learn how to use JSON Source Adapter to Read data from API URL.</p>
<div>
<ol>
<li>Open Visual Studio and Create New SSIS Package Project.</li>
<li>Now, Drag and Drop the SSIS <strong>Data Flow Task</strong> from the SSIS Toolbox.<br />
<img decoding="async" class="figureimage" title="SSIS Data Flow Task - Drag and Drop" src="https://zappysys.com/onlinehelp/ssis-powerpack/scr/images/drag-and-drop-data-flow-task.png" alt="SSIS Data Flow Task - Drag and Drop" /></li>
<li>Double click on the Data Flow task to see Data Flow designer surface.</li>
<li>From the SSIS toolbox drag and drop JSON Source on the dataflow designer surface. If your data format is XML then <a href="https://zappysys.com/onlinehelp/ssis-powerpack/scr/ssis-xml-source.htm" target="_blank" rel="noopener">use XML Source</a>, if your data format is CSV then <a href="https://zappysys.com/onlinehelp/ssis-powerpack/scr/ssis-csv-source.htm">use CSV Source</a>.<br />
<img decoding="async" class="figureimage" title="SSIS JSON Source - Drag and Drop" src="https://zappysys.com/onlinehelp/ssis-powerpack/scr/images/json-source/ssis-json-source-adapter-drag.png" alt="SSIS JSON Source - Drag and Drop" /></li>
<li>Double click JSON Source to configure it.</li>
<li>From the Access Mode dropdown select [File path or web Url] and paste the following Url for this example .<br />
<pre class="crayon-plain-tag">https://services.odata.org/V3/OData/OData.svc/Products?$format=json</pre>
</li>
<li>Now next step is to select Filter (Click <strong>Browse</strong> button next to <strong>Array Filter</strong>) or just type below expression in the text box to define which Hierarchy you like to Flatten (i.e. Array).
<div id="attachment_11491" style="width: 838px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2020/09/json-source-configuration.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11491" class="wp-image-11491 size-full" src="https://zappysys.com/blog/wp-content/uploads/2020/09/json-source-configuration.png" alt="" width="828" height="745" srcset="https://zappysys.com/blog/wp-content/uploads/2020/09/json-source-configuration.png 828w, https://zappysys.com/blog/wp-content/uploads/2020/09/json-source-configuration-300x270.png 300w, https://zappysys.com/blog/wp-content/uploads/2020/09/json-source-configuration-768x691.png 768w" sizes="(max-width: 828px) 100vw, 828px" /></a><p id="caption-attachment-11491" class="wp-caption-text">JSON Source Select Filter</p></div>
<div class="mceTemp"></div>
</li>
<li>JSON/XML can contain multiple arrays within a single document (similar to many tables within a single database). So you have to define which branch you like to extract.  Enter <a href="http://goessner.net/articles/JSONPath/" target="_blank" rel="noopener">JSONPath expression</a> in the Filter textbox to extract only specific part of JSON file as below (<strong>$.value[*]</strong> will get content of value property from JSON document. Value property is an array of JSON documents so we have to use <strong>[*]</strong> to indicate we want all records of that array)<br />
<pre class="crayon-plain-tag">$.value[*]</pre>
<div id="attachment_11492" style="width: 838px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2020/09/json-source-rsult.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11492" class="size-full wp-image-11492" src="https://zappysys.com/blog/wp-content/uploads/2020/09/json-source-rsult.png" alt="" width="828" height="745" srcset="https://zappysys.com/blog/wp-content/uploads/2020/09/json-source-rsult.png 828w, https://zappysys.com/blog/wp-content/uploads/2020/09/json-source-rsult-300x270.png 300w, https://zappysys.com/blog/wp-content/uploads/2020/09/json-source-rsult-768x691.png 768w" sizes="(max-width: 828px) 100vw, 828px" /></a><p id="caption-attachment-11492" class="wp-caption-text">JSON Source preview data</p></div></li>
<li>Click &#8216;Preview&#8217; to check if our settings are correct.</li>
<li>Click OK to save settings.</li>
<li>How to Pass Credentials to the Service (Basic Authorization Header) Check <a href="https://zappysys.com/blog/how-to-set-base64-encoded-authorization-header-for-http-web-request/" target="_blank" rel="noopener">this article</a> for more information</li>
</ol>
<p>After this section we will see how to connect Source to Target like SQL Server and Load API data into SQL Server Table.</p>
</div>
<h2>Load API data into SQL Server Table / Other Target</h2>
<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>
<h3>Step 1: Add Upsert Destination to Data Flow</h3>
<ol>
<li>Drag and drop the <strong>Upsert Destination</strong> component from the SSIS Toolbox.</li>
<li>Connect your source component (e.g., JSON / REST / Other Source) to the Upsert Destination.</li>
</ol>
<div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2017/08/ssis-data-flow-drag-drop-upsert-destination.png">
<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>
<p class="wp-caption-text">SSIS - Data Flow - Drang and Drop Upsert Destination Component</p>
</div>
<h3>Step 2: Configure Target Connection</h3>
<ol>
<li>Double-click the <strong>Upsert Destination</strong> component to open the configuration window.</li>
<li>Under <strong>Connection</strong>, select an existing target connection or click <strong>NEW</strong> to create a new connection.
<ul>
<li>Example: SQL Server, or PostgreSQL, or Amazon Redshift.</li>
</ul>
</li>
</ol>
<h3>Step 3: Select or Create Target Table</h3>
<ol>
<li>In the <strong>Target Table</strong> dropdown, select the table where you want to load data.</li>
<li>Optionally, click <strong>NEW</strong> to create a new table based on the source columns.</li>
</ol>
<div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-configuration.png">
<img loading="lazy" decoding="async" class="size-full" alt="" src="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-configuration.png" /></a>
<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>
</div>
<h3>Step 4: Map Columns</h3>
<ol>
<li>Go to the <strong>Mappings</strong> tab.</li>
<li>Click <strong>Auto Map</strong> to map source columns to target columns by name.</li>
<li>Ensure you <strong>check the Primary key column(s)</strong> that will determine whether a record is inserted or updated.</li>
<li>You can manually adjust the mappings if necessary.</li>
</ol>
 <div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-key.png">
<img loading="lazy" decoding="async" class="size-full" alt="" src="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-key.png" /></a>
<p class="wp-caption-text">SSIS Upsert Destination - Columns Mappings</p>
</div>
<h3>Step 5: Save Settings</h3>
<ul>
<li>Click <strong>OK</strong> to save the Upsert Destination configuration.</li>
</ul>
<h3>Step 6: Optional: Add Logging or Analysis</h3>
<ul>
<li>You may add extra destination components to log the number of inserted vs. updated records for monitoring or auditing purposes.</li>
</ul>
<h3>Step 7: Execute the Package</h3>
<ul>
<li>Run your SSIS package and verify that the data is correctly inserted and updated in the target table.</li>
</ul>
<div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2018/12/ssis-upsert-destination-execute.png">
<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>
<p class="wp-caption-text">SSIS Upsert Destination Execution</p>
</div></div>
<h2>API Authentication</h2>
<p>In our step by step example we did not cover Authentication to keep things simple but in real world you have to pass some sort of authentication details to make API calls (e.g. UserID/Password or Secure Token). There are many ways to authenticate with API Services. ZappySys offer mainly 2 Connection Managers to cover most Authentication scenarios.</p>
<ol>
<li><a href="https://zappysys.com/onlinehelp/ssis-powerpack/scr/ssis-http-connection-manager.htm" target="_blank" rel="noopener">HTTP Connection Manager</a></li>
<li><a href="https://zappysys.com/onlinehelp/ssis-powerpack/scr/ssis-oauth-connection-manager.htm" target="_blank" rel="noopener">OAuth Connection Manager</a></li>
</ol>
<h3>Using HTTP Connection Manager</h3>
<p>If you have use case of using UserID / Password or any other method supported by HTTP Connection Manager then use below option (Below example is for Basic Authentication)</p>
<div id="attachment_11495" style="width: 835px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2020/09/using-HTTP-connection.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11495" class="wp-image-11495 size-full" src="https://zappysys.com/blog/wp-content/uploads/2020/09/using-HTTP-connection.png" alt="SSIS JSON Source - Passing Basic Credentials (Supply UserID / Password) using HTTP Connection" width="825" height="812" srcset="https://zappysys.com/blog/wp-content/uploads/2020/09/using-HTTP-connection.png 825w, https://zappysys.com/blog/wp-content/uploads/2020/09/using-HTTP-connection-300x295.png 300w, https://zappysys.com/blog/wp-content/uploads/2020/09/using-HTTP-connection-768x756.png 768w" sizes="(max-width: 825px) 100vw, 825px" /></a><p id="caption-attachment-11495" class="wp-caption-text">SSIS JSON Source &#8211; Passing Basic Credentials (Supply UserID / Password) using HTTP Connection</p></div>
<h3>Using OAuth Connection Manager</h3>
<p>If your API support <a href="https://zappysys.com/blog/rest-api-authentication-with-oauth-2-0-using-ssis/" target="_blank" rel="noopener">OAuth Standard</a> for Authorization then use OAuth Connection Type as below.</p>
<div id="attachment_11496" style="width: 838px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2020/09/using-OAUTH-connection.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11496" class="size-full wp-image-11496" src="https://zappysys.com/blog/wp-content/uploads/2020/09/using-OAUTH-connection.png" alt="" width="828" height="896" srcset="https://zappysys.com/blog/wp-content/uploads/2020/09/using-OAUTH-connection.png 828w, https://zappysys.com/blog/wp-content/uploads/2020/09/using-OAUTH-connection-277x300.png 277w, https://zappysys.com/blog/wp-content/uploads/2020/09/using-OAUTH-connection-768x831.png 768w" sizes="(max-width: 828px) 100vw, 828px" /></a><p id="caption-attachment-11496" class="wp-caption-text">Generate Token for Google API using OAuth 2.0</p></div>
<h2>API Pagination</h2>
<p>Pagination is another important concept to understand when you call API using ZappySys Connector. If you ready many records from your API then by default API might not return all rows so you have to paginate until all records are read (Like a Loop in Programming). ZappySys makes it easy to paginate. Check this article to configure <a href="https://zappysys.com/blog/ssis-rest-api-looping-until-no-more-pages-found/" target="_blank" rel="noopener">many different Pagination Modes</a></p>
<div class="content_block" id="custom_post_widget-1887"><h3>Truncation related error</h3>
<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. For 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>

<h3>Authentication related error</h3>
Another 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> to see why it happens and how to solve this problem.</div>
<div class="content_block" id="custom_post_widget-2021"><h2>Things have gone bad: Error handling &amp; debugging</h2>
<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>

<h3>Handling errors</h3>
<ol style="margin-left: 0;">
 	<li>Add a <em>Derived Column</em> above <em>Web API Destination</em> with expression <strong>"(DT_WSTR,4000)ZS_JSON_OUT"</strong> and name it <strong>"JsonAsString"</strong>. This will let you see what JSON you are actually passing.</li>
 	<li>Then add a database or file destination or use another <em>Trash Destination</em> for 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> option for both, <em>Error</em> and <em>Truncation</em> columns:<em><em>
</em></em>
<div class="wp-caption">

<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>
<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>

</div></li>
 	<li>Finally, add a <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> to <em>Notepad </em>if you want it to be more readable:
<div class="wp-caption">

<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>
<p class="wp-caption-text">Use Data Viewer to view HTTP requests that failed to be fulfilled.</p>

</div></li>
</ol>
<div class="su-note" style="border-color: #e5dea5; border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px;">
<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>
</div>
<h3>Debugging HTTP requests</h3>
<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. <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> - a popular web debugging tool.</p>
<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>

<div id="attachment_2344" class="wp-caption alignnone">

<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>
<p class="wp-caption-text">Debugging Web API call using Fiddler in SSIS</p>

</div></div>
<h2>Conclusion</h2>
<p>REST API is becoming more and more popular each day. With that Data integration from RESTful API services going to be challenge. Luckily ZappySys <a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">SSIS PowerPack</a> provides a great way to integrate any API in SSIS via simple drag and drop approach without coding. Try <a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">SSIS PowerPack for FREE</a>  see how much time / money you can save and to integrate virtually any REST API.</p>
<p>The post <a href="https://zappysys.com/blog/ssis-read-api-data-load-sql-table/">How to Read API data in SSIS and Load into SQL Table</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to read data from ElasticSearch using SSIS</title>
		<link>https://zappysys.com/blog/read-data-from-elasticsearch-using-ssis/</link>
		
		<dc:creator><![CDATA[ZappySys]]></dc:creator>
		<pubDate>Fri, 20 Dec 2019 10:02:31 +0000</pubDate>
				<category><![CDATA[REST API]]></category>
		<category><![CDATA[REST API Integration]]></category>
		<category><![CDATA[SSIS JSON Source (File/REST)]]></category>
		<category><![CDATA[SSIS REST API Task]]></category>
		<category><![CDATA[API Integration]]></category>
		<category><![CDATA[elasticsearch]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[ssis]]></category>
		<guid isPermaLink="false">https://zappysys.com/blog/?p=8573</guid>

					<description><![CDATA[<p>Introduction In our previous article, we see how to load data into Elastic Search using SSIS. Now let&#8217;s look at how to read data from ElasticSearch using SSIS and load response into SQL Server. Elasticsearch is a powerful engine that allows you to store, aggregate, and, most importantly, search data in a very analytical way. In this tutorial, you [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/read-data-from-elasticsearch-using-ssis/">How to read data from ElasticSearch using SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Introduction</h2>
<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> ZappySys has released a brand new <a href="https://zappysys.com/api/integration-hub/elasticsearch-connector/">API Connector for ElasticSearch</a> which makes it much simpler to <strong>Read/Write ElasticSearch 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 a learning curve with API then use a newer approach.</p>
<p>Please visit <a href="https://zappysys.com/api/integration-hub/">this page to see all</a> preconfigured ready-to-use API connectors that 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 <a href="https://zappysys.com/products/odbc-powerpack/odbc-api-driver/">API ODBC Driver</a> (for non-SSIS Apps such as Excel, Power BI, and Informatica).</p>
</div></div>
<img loading="lazy" decoding="async" class="alignleft wp-image-1406 size-thumbnail" src="https://zappysys.com/blog/wp-content/uploads/2017/06/elasticsearch-logo-180x180-150x150.png" alt="" width="150" height="150" srcset="https://zappysys.com/blog/wp-content/uploads/2017/06/elasticsearch-logo-180x180-150x150.png 150w, https://zappysys.com/blog/wp-content/uploads/2017/06/elasticsearch-logo-180x180.png 180w" sizes="(max-width: 150px) 100vw, 150px" /></p>
<p>In our previous article, we see how to <a href="https://zappysys.com/blog/load-data-from-sql-server-to-elasticsearch-using-ssis/" target="_blank" rel="noopener">load data into Elastic Search using SSIS</a>. Now let&#8217;s look at <strong>how to read data from ElasticSearch using SSIS</strong> and load response into SQL Server.</p>
<p><a href="https://www.elastic.co/" target="_blank" rel="noopener">Elasticsearch</a> is a powerful engine that allows you to store, aggregate, and, most importantly, search data in a very analytical way. In this tutorial, you will learn how to load <em>Elasticsearch </em>data to <em>SQL Server </em>with <a href="https://docs.microsoft.com/en-us/sql/integration-services/sql-server-integration-services" target="_blank" rel="noopener"><acronym title="SQL Server Integration Services">SSIS</acronym></a> (part of SQL Server) and <a href="//zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">ZappySys PowerPack</a>. We also see how to set the maximum result window of the index using the Rest API Task.</p>
<p>In a nutshell, this post will focus on how to Make Elasticsearch Search API call using SSIS.</p>
<p>&nbsp;</p>
<div class="content_block" id="custom_post_widget-2523"><h2><span id="Prerequisites">Prerequisites</span></h2>
Before we perform the steps listed in this article, you will need to make sure the following prerequisites are met:
<ol style="margin-left: 1.5em;">
 	<li><abbr title="SQL Server Integration Services">SSIS</abbr> designer installed. Sometimes 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>
 	<li>Basic knowledge of SSIS package development using <em>Microsoft SQL Server Integration Services</em>.</li>
 	<li>Make sure <span style="text-decoration: underline;"><a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">ZappySys SSIS PowerPack</a></span> is installed (<a href="https://zappysys.com/products/ssis-powerpack/download/" target="_blank" rel="noopener">download it</a>, if you haven't already).</li>
 	<li>(<em>Optional step</em>)<em>.</em> <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>
</ol></div>
<h2><span id="CallUPSREST_API_using_SSIS">Step-By-Step to Call Elasticsearch API call<span id="Step-By-Step_8211_CallSemantics3_REST_API_using_SSIS"> using SSIS</span></span></h2>
<h3>Read from Elasticsearch Search API call</h3>
<p>Let&#8217;s make the Elasticsearch <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/search.html" target="_blank" rel="noopener">Search API</a> call using the JSON source to get all the records of the index with pagination.</p>
<ol>
<li>First of All, Drag and drop Data Flow Task from SSIS Toolbox and double click it to edit.
<div id="attachment_8028" style="width: 470px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/02/drag-and-drop-data-flow-task.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-8028" class="wp-image-8028 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/02/drag-and-drop-data-flow-task.png" alt="" width="460" height="155" srcset="https://zappysys.com/blog/wp-content/uploads/2019/02/drag-and-drop-data-flow-task.png 460w, https://zappysys.com/blog/wp-content/uploads/2019/02/drag-and-drop-data-flow-task-300x101.png 300w" sizes="(max-width: 460px) 100vw, 460px" /></a><p id="caption-attachment-8028" class="wp-caption-text">Dragging and dropping Data Flow Task into Control Flow</p></div></li>
<li>From the SSIS toolbox drag and drop JSON Source on the data flow designer surface.
<div id="attachment_3766" style="width: 604px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/05/ssis-json-source-for-getting-basic-profile-from-linkedin.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3766" class="wp-image-3766 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/05/ssis-json-source-for-getting-basic-profile-from-linkedin.png" alt="Drag and Drop JSON Source Component" width="594" height="268" srcset="https://zappysys.com/blog/wp-content/uploads/2018/05/ssis-json-source-for-getting-basic-profile-from-linkedin.png 594w, https://zappysys.com/blog/wp-content/uploads/2018/05/ssis-json-source-for-getting-basic-profile-from-linkedin-300x135.png 300w" sizes="(max-width: 594px) 100vw, 594px" /></a><p id="caption-attachment-3766" class="wp-caption-text">Drag and Drop JSON Source Component</p></div></li>
<li>Double click JSON Source and enter the following URL as below to make Search API Call on the index.<br />
<pre class="crayon-plain-tag">http://{elasticsearch-site-url}/{index}/{index-type}/_search</pre>
</li>
<li>Now check Use credentials and <em>Select Connection</em> section press <pre class="crayon-plain-tag">&lt;New ZS-HTTP Connection&gt;</pre>.
<div id="attachment_1676" style="width: 972px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2015/08/ssis-json-source-rest-api-http-basic-authentication-pass-userid-password.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1676" class="size-full wp-image-1676" src="https://zappysys.com/blog/wp-content/uploads/2015/08/ssis-json-source-rest-api-http-basic-authentication-pass-userid-password.png" alt="SSIS JSON Source - Passing Basic Credentials (Supply UserID / Password) using HTTP Connection" width="962" height="757" srcset="https://zappysys.com/blog/wp-content/uploads/2015/08/ssis-json-source-rest-api-http-basic-authentication-pass-userid-password.png 962w, https://zappysys.com/blog/wp-content/uploads/2015/08/ssis-json-source-rest-api-http-basic-authentication-pass-userid-password-300x236.png 300w, https://zappysys.com/blog/wp-content/uploads/2015/08/ssis-json-source-rest-api-http-basic-authentication-pass-userid-password-768x604.png 768w" sizes="(max-width: 962px) 100vw, 962px" /></a><p id="caption-attachment-1676" class="wp-caption-text">SSIS JSON Source &#8211; Passing Basic Credentials (Supply UserID / Password) using HTTP Connection</p></div></li>
<li>Once the <em>HTTP Connection Manager</em> window opens configure the connection to your Elasticsearch instance:
<ul>
<li>Set <em>Web Url</em>, which points to your Elasticsearch instance.</li>
<li>Set <em>Credentials Type</em> to <pre class="crayon-plain-tag">Basic - UserID/Password</pre> (or other appropriate authentication methods).</li>
<li>Finally, set <em>User Name</em> and <em>Password:<br />
</em></p>
<div id="attachment_1419" style="width: 330px" class="wp-caption alignnone"><a href="//zappysys.com/blog/wp-content/uploads/2017/06/ssis-post-data-to-elasticsearch-configure-http-connection.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1419" class="wp-image-1419 size-full" src="https://zappysys.com/blog/wp-content/uploads/2017/06/ssis-post-data-to-elasticsearch-configure-http-connection.png" alt="Configure SSIS HTTP Connection to connect to Elasticsearch" width="320" height="207" srcset="https://zappysys.com/blog/wp-content/uploads/2017/06/ssis-post-data-to-elasticsearch-configure-http-connection.png 320w, https://zappysys.com/blog/wp-content/uploads/2017/06/ssis-post-data-to-elasticsearch-configure-http-connection-300x194.png 300w" sizes="(max-width: 320px) 100vw, 320px" /></a><p id="caption-attachment-1419" class="wp-caption-text">Configure SSIS <em>HTTP Connection</em> to connect to Elasticsearch</p></div></li>
</ul>
</li>
<li>Now, select method as POST and set for and size value in the body to get data using pagination. Set the content type as JSON (application/json).<br />
<pre class="crayon-plain-tag">{"from" : &lt;%page%&gt;, "size" : 100}</pre>
</li>
<li>Furthermore, go to the pagination tab and configure pagination like the below screenshot makes sure we need to enter increment size the same as given in body size value therefor 100.
<div id="attachment_8600" style="width: 747px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/12/ssis-json-source-pagination-post-data-mode.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-8600" class="size-full wp-image-8600" src="https://zappysys.com/blog/wp-content/uploads/2019/12/ssis-json-source-pagination-post-data-mode.png" alt="Pagination Mode : POST data in body" width="737" height="720" srcset="https://zappysys.com/blog/wp-content/uploads/2019/12/ssis-json-source-pagination-post-data-mode.png 737w, https://zappysys.com/blog/wp-content/uploads/2019/12/ssis-json-source-pagination-post-data-mode-300x293.png 300w" sizes="(max-width: 737px) 100vw, 737px" /></a><p id="caption-attachment-8600" class="wp-caption-text">Pagination Mode: POST data in the body</p></div></li>
<li>That&#8217;s it now select the desired filter and click on the Preview button.<a href="https://zappysys.com/blog/wp-content/uploads/2019/12/ssis-json-source-preview-elasticsearch-api.png"><img loading="lazy" decoding="async" class="aligncenter size-medium_large wp-image-8597" src="https://zappysys.com/blog/wp-content/uploads/2019/12/ssis-json-source-preview-elasticsearch-api-768x657.png" alt="" width="720" height="616" srcset="https://zappysys.com/blog/wp-content/uploads/2019/12/ssis-json-source-preview-elasticsearch-api-768x657.png 768w, https://zappysys.com/blog/wp-content/uploads/2019/12/ssis-json-source-preview-elasticsearch-api-300x257.png 300w, https://zappysys.com/blog/wp-content/uploads/2019/12/ssis-json-source-preview-elasticsearch-api.png 917w" sizes="(max-width: 720px) 100vw, 720px" /></a></li>
<li>That&#8217;s it we are ready to load the data in the SQL Server.</li>
</ol>
<h3>For more than 10000 rows</h3>
<p>When you try to get more than 100000 rows you will get the next error message</p><pre class="crayon-plain-tag">{
    "error": {
        "root_cause": [
            {
                "type": "illegal_argument_exception",
                "reason": "Result window is too large, from + size must be less than or equal to: [10000] but was [11000]. See the scroll api for a more efficient way to request large data sets. This limit can be set by changing the [index.max_result_window] index level setting."
            }
        ]
    },
    "status": 400
}</pre><p>
Here is how to configure your JSON Source to pull more than 10K rows using Scroll Method.</p>
<ol>
<li>In Settings Tab: In the Body and URL rather than Index name use <pre class="crayon-plain-tag">[$tag$]</pre></li>
<li>In the filter type: <pre class="crayon-plain-tag">$.hits.hits[*]._source</pre></li>
<li>Uncheck Include Parent
<div id="attachment_10804" style="width: 838px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/12/JSON-source-tag.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-10804" class="size-full wp-image-10804" src="https://zappysys.com/blog/wp-content/uploads/2019/12/JSON-source-tag.png" alt="Elasticsearch JSON source general tab" width="828" height="808" srcset="https://zappysys.com/blog/wp-content/uploads/2019/12/JSON-source-tag.png 828w, https://zappysys.com/blog/wp-content/uploads/2019/12/JSON-source-tag-300x293.png 300w, https://zappysys.com/blog/wp-content/uploads/2019/12/JSON-source-tag-768x749.png 768w" sizes="(max-width: 828px) 100vw, 828px" /></a><p id="caption-attachment-10804" class="wp-caption-text">Elasticsearch example for more than 10000 rows</p></div></li>
<li>In Pagination Tab, Set Next Link as below <pre class="crayon-plain-tag">$._scroll_id</pre></li>
<li>Stop Indicator Attribute as below <pre class="crayon-plain-tag">$.hits.hits[0]._id</pre></li>
<li>Stop Indicator Value as <pre class="crayon-plain-tag">regex=^$</pre>
<div id="attachment_10805" style="width: 676px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/12/Elasticsearch-pagination-tab.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-10805" class="size-full wp-image-10805" src="https://zappysys.com/blog/wp-content/uploads/2019/12/Elasticsearch-pagination-tab.png" alt="Elasticsearch JSON source pagination tab" width="666" height="299" srcset="https://zappysys.com/blog/wp-content/uploads/2019/12/Elasticsearch-pagination-tab.png 666w, https://zappysys.com/blog/wp-content/uploads/2019/12/Elasticsearch-pagination-tab-300x135.png 300w" sizes="(max-width: 666px) 100vw, 666px" /></a><p id="caption-attachment-10805" class="wp-caption-text">Elasticsearch pagination tab configuration</p></div></li>
<li>In Advanced Pagination Tab, Check Has Different Page Info and Enable Page Token</li>
<li>Enter Page Place Holders as below (change YOUR_INDEX_NAME)<br />
<pre class="crayon-plain-tag">url=YOUR_INDEX_NAME/_search?scroll=10m|_search/scroll</pre></li>
<li>First Page Body as below &#8211; Change query as needed else keep it match all to fetch all rows from Index<br />
<pre class="crayon-plain-tag">{ "size":1000, "query": { "match_all": { }  } }</pre></li>
<li>Next Page Body as below <pre class="crayon-plain-tag">{  "scroll": "5m", "scroll_id": "[$pagetoken$]" }</pre>
<div id="attachment_10806" style="width: 676px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/12/Elasticsearch-advanced-pagination-tab.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-10806" class="size-full wp-image-10806" src="https://zappysys.com/blog/wp-content/uploads/2019/12/Elasticsearch-advanced-pagination-tab.png" alt="Elasticsearch JSON source advanced pagination tab" width="666" height="299" srcset="https://zappysys.com/blog/wp-content/uploads/2019/12/Elasticsearch-advanced-pagination-tab.png 666w, https://zappysys.com/blog/wp-content/uploads/2019/12/Elasticsearch-advanced-pagination-tab-300x135.png 300w" sizes="(max-width: 666px) 100vw, 666px" /></a><p id="caption-attachment-10806" class="wp-caption-text">Configuration for Elasticsearch advanced pagination tab</p></div></li>
</ol>
<h3>Loading Elasticsearch API data into SQL Server / Other Target</h3>
<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>
<h3>Step 1: Add Upsert Destination to Data Flow</h3>
<ol>
<li>Drag and drop the <strong>Upsert Destination</strong> component from the SSIS Toolbox.</li>
<li>Connect your source component (e.g., JSON / REST / Other Source) to the Upsert Destination.</li>
</ol>
<div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2017/08/ssis-data-flow-drag-drop-upsert-destination.png">
<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>
<p class="wp-caption-text">SSIS - Data Flow - Drang and Drop Upsert Destination Component</p>
</div>
<h3>Step 2: Configure Target Connection</h3>
<ol>
<li>Double-click the <strong>Upsert Destination</strong> component to open the configuration window.</li>
<li>Under <strong>Connection</strong>, select an existing target connection or click <strong>NEW</strong> to create a new connection.
<ul>
<li>Example: SQL Server, or PostgreSQL, or Amazon Redshift.</li>
</ul>
</li>
</ol>
<h3>Step 3: Select or Create Target Table</h3>
<ol>
<li>In the <strong>Target Table</strong> dropdown, select the table where you want to load data.</li>
<li>Optionally, click <strong>NEW</strong> to create a new table based on the source columns.</li>
</ol>
<div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-configuration.png">
<img loading="lazy" decoding="async" class="size-full" alt="" src="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-configuration.png" /></a>
<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>
</div>
<h3>Step 4: Map Columns</h3>
<ol>
<li>Go to the <strong>Mappings</strong> tab.</li>
<li>Click <strong>Auto Map</strong> to map source columns to target columns by name.</li>
<li>Ensure you <strong>check the Primary key column(s)</strong> that will determine whether a record is inserted or updated.</li>
<li>You can manually adjust the mappings if necessary.</li>
</ol>
 <div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-key.png">
<img loading="lazy" decoding="async" class="size-full" alt="" src="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-key.png" /></a>
<p class="wp-caption-text">SSIS Upsert Destination - Columns Mappings</p>
</div>
<h3>Step 5: Save Settings</h3>
<ul>
<li>Click <strong>OK</strong> to save the Upsert Destination configuration.</li>
</ul>
<h3>Step 6: Optional: Add Logging or Analysis</h3>
<ul>
<li>You may add extra destination components to log the number of inserted vs. updated records for monitoring or auditing purposes.</li>
</ul>
<h3>Step 7: Execute the Package</h3>
<ul>
<li>Run your SSIS package and verify that the data is correctly inserted and updated in the target table.</li>
</ul>
<div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2018/12/ssis-upsert-destination-execute.png">
<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>
<p class="wp-caption-text">SSIS Upsert Destination Execution</p>
</div></div>
<h3>Enable Deep Pagination Setting</h3>
<p>By default index, the maximum result window size is 10,000 means you can paginate upto 10000 rows. If you ever want to get more than 10000 result then you have to perform the following steps to change default setting from 10000 to 500000 (that&#8217;s max).</p>
<p>We need to send PUT request to below URL:</p><pre class="crayon-plain-tag">http://{elasticsearch-site-url}/{your-index}/_settings</pre><p>
Need to pass below body as I am setting max result window size value as 500000.</p><pre class="crayon-plain-tag">{ "index" : { "max_result_window" : 500000 } }</pre><p>
And set content-type as JSON (application/json) and click on Test Request/Response and it will make the API call and set the max window size.</p>
<div id="attachment_8577" style="width: 730px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/12/ssis-rest-api-task-elasticsearch-put-setting-call.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-8577" class="wp-image-8577 size-medium_large" src="https://zappysys.com/blog/wp-content/uploads/2019/12/ssis-rest-api-task-elasticsearch-put-setting-call-768x419.png" alt="Rest API Task PUT Call" width="720" height="393" srcset="https://zappysys.com/blog/wp-content/uploads/2019/12/ssis-rest-api-task-elasticsearch-put-setting-call-768x419.png 768w, https://zappysys.com/blog/wp-content/uploads/2019/12/ssis-rest-api-task-elasticsearch-put-setting-call-300x164.png 300w, https://zappysys.com/blog/wp-content/uploads/2019/12/ssis-rest-api-task-elasticsearch-put-setting-call-1024x559.png 1024w, https://zappysys.com/blog/wp-content/uploads/2019/12/ssis-rest-api-task-elasticsearch-put-setting-call.png 1221w" sizes="(max-width: 720px) 100vw, 720px" /></a><p id="caption-attachment-8577" class="wp-caption-text">Rest API Task PUT Call</p></div>
<p>That&#8217;s it we have successfully made the call to set the maximum result window size of the index.</p>
<h3></h3>
<h2>Common Errors</h2>
<div class="content_block" id="custom_post_widget-1887"><h3>Truncation related error</h3>
<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. For 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>

<h3>Authentication related error</h3>
Another 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> to see why it happens and how to solve this problem.</div>
<h2>Deployment to Production</h2>
<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. So 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> or 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’t face authentication related errors when a package is deployed to a production server.</p>
<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>
<h2><span id="Conclusion">Conclusion</span></h2>
<p>After all, we saw you How to Make Elasticsearch Search API call using SSIS JSON Source and load response into SQL Server. In this article, we have seen that how to make a setting call to set the maximum result window of the index. To explore many other scenarios not discussed in this article download <a href="https://zappysys.com/products/ssis-powerpack/">SSIS PowerPack from here (includes 70+ Components)</a>.</p>
<h2><span id="References">References</span></h2>
<p>Finally, you can use the following links for more information:</p>
<ul>
<li>Help File: <a href="https://zappysys.com/onlinehelp/ssis-powerpack/scr/json-source.htm" target="_blank" rel="noopener">JSON Source(REST API or File)</a></li>
<li><a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/search.html" target="_blank" rel="noopener">Elasticsearch Search APIs </a></li>
</ul>
<p>The post <a href="https://zappysys.com/blog/read-data-from-elasticsearch-using-ssis/">How to read data from ElasticSearch using SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Make UPS API call in SSIS</title>
		<link>https://zappysys.com/blog/make-ups-api-call-ssis/</link>
		
		<dc:creator><![CDATA[ZappySys]]></dc:creator>
		<pubDate>Sat, 23 Nov 2019 08:01:18 +0000</pubDate>
				<category><![CDATA[REST API]]></category>
		<category><![CDATA[REST API Integration]]></category>
		<category><![CDATA[SSIS JSON Source (File/REST)]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[ssis]]></category>
		<category><![CDATA[ups]]></category>
		<guid isPermaLink="false">https://zappysys.com/blog/?p=8376</guid>

					<description><![CDATA[<p>Introduction In our previous article we see How to read call REST API data in SSIS. Now in this article, we will see How to Make UPS API call in SSIS and load response into SQL Server. This blog mainly focuses on SSIS approach but steps mentioned to call UPS REST API Call can be useful for any [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/make-ups-api-call-ssis/">How to Make UPS API call in SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2><span id="Introduction">Introduction</span></h2>
<p><a href="https://zappysys.com/blog/wp-content/uploads/2019/11/UPS.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" class="alignleft wp-image-8379 size-thumbnail" title="PayPal" src="https://zappysys.com/blog/wp-content/uploads/2019/11/UPS-150x150.png" alt="UPS" width="150" height="150" srcset="https://zappysys.com/blog/wp-content/uploads/2019/11/UPS-150x150.png 150w, https://zappysys.com/blog/wp-content/uploads/2019/11/UPS.png 300w" sizes="(max-width: 150px) 100vw, 150px" /></a>In our previous article we see <a href="https://zappysys.com/blog/call-rest-api-using-ssis-web-service-task/" target="_blank" rel="noopener">How to read call REST API data in SSIS</a>. Now in this article, we will see <strong>How to Make UPS API call in SSIS</strong> and load response into SQL Server. This blog mainly focuses on SSIS approach but steps mentioned to call UPS REST API Call can be useful for any developer regardless of which programming language or tool set you use. We will also see how to configure POST API Call.</p>
<p>We will go through the steps to make Pickup Creation Request API call which Returns a PRN and Rate Result and we load it into MS SQL Server.</p>
<p>In nutshell, this post will focus on how to Make UPS REST API Call in SSIS.</p>
<p>&nbsp;</p>
<h2><span id="Prerequisites">Prerequisites</span></h2>
<p>Before we perform the steps listed in this article, you will need to make sure the following prerequisites are met:</p>
<ol>
<li><abbr title="SQL Server Integration Services">SSIS</abbr> designer installed. Sometimes 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 Microsoft site</a>).</li>
<li>Basic knowledge of SSIS package development using <em>Microsoft SQL Server Integration Services</em>.</li>
<li>Make sure <a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">ZappySys SSIS PowerPack</a> is installed (<a href="https://zappysys.com/products/ssis-powerpack/download/" target="_blank" rel="noopener">download it</a>).</li>
<li>Credentials of UPS API.</li>
</ol>
<h2><span id="What_is_Walmart"><span id="What_is_WordPress">What is UPS?</span></span></h2>
<p>United Parcel Service Founded in 1907, UPS is the world&#8217;s largest package delivery company and a leading global provider of specialised transportation and logistics services. Using advanced technology, access to global resources, and an integrated network of physical, technological, and human assets, UPS provides a powerful competitive advantage that can help you earn repeat customers and grow your business.</p>
<h2>Where to get the UPS Credentials?</h2>
<p>You can get Username and password by <a href="https://www.ups.com/doapp/signup" target="_blank" rel="noopener">signup</a> in UPS website and also need to get Access Key from <a href="https://www.ups.com/upsdeveloperkit/manageaccesskeys?loc=en_US" target="_blank" rel="noopener">UPS Developer Kit</a>.</p>
<h2>Call UPS <span id="Step-By-Step_8211_CallSemantics3_REST_API_using_SSIS">REST API using SSIS</span></h2>
<p>Let’s start with an example. We use SSIS JSON Source component to make the call to UPS API, we will make Pickup Creation Request and load response into SQL Server. First of All, Open Visual Studio and Create New SSIS Package Project.</p>
<ol>
<li>First of All, Drag and drop Data Flow Task from SSIS Toolbox and double click it to edit.
<div id="attachment_7934" style="width: 470px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-7934" class="wp-image-7934 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task.png" alt="Drag and Drop SSIS Data Flow Task from SSIS Toolbox" width="460" height="155" srcset="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task.png 460w, https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task-300x101.png 300w" sizes="(max-width: 460px) 100vw, 460px" /></a><p id="caption-attachment-7934" class="wp-caption-text">Drag and Drop : SSIS Data Flow Task from SSIS Toolbox</p></div></li>
<li>From the SSIS toolbox drag and drop JSON Source on the data flow designer surface.
<div id="attachment_3766" style="width: 604px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/05/ssis-json-source-for-getting-basic-profile-from-linkedin.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3766" class="wp-image-3766 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/05/ssis-json-source-for-getting-basic-profile-from-linkedin.png" alt="Drag and Drop JSON Source Component" width="594" height="268" srcset="https://zappysys.com/blog/wp-content/uploads/2018/05/ssis-json-source-for-getting-basic-profile-from-linkedin.png 594w, https://zappysys.com/blog/wp-content/uploads/2018/05/ssis-json-source-for-getting-basic-profile-from-linkedin-300x135.png 300w" sizes="(max-width: 594px) 100vw, 594px" /></a><p id="caption-attachment-3766" class="wp-caption-text">Drag and Drop JSON Source Component</p></div></li>
<li>Double click JSON Source and enter the following URL as below to make Pickup Creation Request API Call and select Method as POST, I am using Testing URL but we need to use production one for real time API call.<br />
<strong>Testing: </strong><br />
<pre class="crayon-plain-tag">https://wwwcie.ups.com/rest/Pickup</pre>
<strong>Production: </strong><br />
<pre class="crayon-plain-tag">https://onlinetools.ups.com/rest/Pickup</pre>
<div id="attachment_8382" style="width: 667px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/11/ssis-json-source-set-ups-url.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-8382" class="wp-image-8382 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/11/ssis-json-source-set-ups-url.png" alt="JSON Source Set URL" width="657" height="740" srcset="https://zappysys.com/blog/wp-content/uploads/2019/11/ssis-json-source-set-ups-url.png 657w, https://zappysys.com/blog/wp-content/uploads/2019/11/ssis-json-source-set-ups-url-266x300.png 266w" sizes="(max-width: 657px) 100vw, 657px" /></a><p id="caption-attachment-8382" class="wp-caption-text">JSON Source Set URL</p></div></li>
<li>Furthermore, set below JSON string in the body and also replace your UPS username, password and access key in the placeholder, i used my dummy data you need to pass yours valid data.<br />
<pre class="crayon-plain-tag">{
	"UPSSecurity": {
		"UsernameToken": {
			"Username": "[YOUR USERNAME]",
			"Password": "[PASSWORD]"
		},
		"ServiceAccessToken": {
			"AccessLicenseNumber": "[ACCESS KEY]"
		}
	},
	"PickupCreationRequest": {
		"Request": {
			"TransactionReference": {
				"CustomerContext": "CustomerContext."
			}
		},
		"RatePickupIndicator": "Y",
		"TaxInformationIndicator": "Y",
		"PickupDateInfo": {
			"CloseTime": "1700",
			"ReadyTime": "1000",
			"PickupDate": "20191123"
		},
		"PickupAddress": {
			"CompanyName": "EIVR TEST NON-ACCOUNT PL 3",
			"ContactName": "EIVR TES PL",
			"AddressLine": "12380 Morris Rd",
			"City": "Louisville",
			"StateProvince": "KY",
			"PostalCode": "40201",
			"CountryCode": "US",
			"ResidentialIndicator": "N",
			"Phone": {
				"Number": "+48223803070"
			}
		},
		"AlternateAddressIndicator": "N",
		"PickupPiece": {
			"ServiceCode": "003",
			"Quantity": "1",
			"DestinationCountryCode": "US",
			"ContainerCode": "01"
		},
		"OverweightIndicator": "N",
		"PaymentMethod": "05"
	}
}</pre>
<div id="attachment_8383" style="width: 940px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/11/ssis-json-source-set-ups-body.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-8383" class="wp-image-8383 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/11/ssis-json-source-set-ups-body.png" alt="JSON Source set Body" width="930" height="551" srcset="https://zappysys.com/blog/wp-content/uploads/2019/11/ssis-json-source-set-ups-body.png 930w, https://zappysys.com/blog/wp-content/uploads/2019/11/ssis-json-source-set-ups-body-300x178.png 300w, https://zappysys.com/blog/wp-content/uploads/2019/11/ssis-json-source-set-ups-body-768x455.png 768w" sizes="(max-width: 930px) 100vw, 930px" /></a><p id="caption-attachment-8383" class="wp-caption-text">JSON Source set Body</p></div></li>
<li>Now click on Select Filter button to get the desire filter.
<div id="attachment_8384" style="width: 730px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/11/ssis-json-source-select-filter-ups.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-8384" class="wp-image-8384 size-medium_large" src="https://zappysys.com/blog/wp-content/uploads/2019/11/ssis-json-source-select-filter-ups-768x595.png" alt="JSON Source Select Filter" width="720" height="558" srcset="https://zappysys.com/blog/wp-content/uploads/2019/11/ssis-json-source-select-filter-ups-768x595.png 768w, https://zappysys.com/blog/wp-content/uploads/2019/11/ssis-json-source-select-filter-ups-300x232.png 300w, https://zappysys.com/blog/wp-content/uploads/2019/11/ssis-json-source-select-filter-ups.png 941w" sizes="(max-width: 720px) 100vw, 720px" /></a><p id="caption-attachment-8384" class="wp-caption-text">JSON Source Select Filter</p></div></li>
<li>Finally click on Preview button to load the data.
<div id="attachment_8385" style="width: 709px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/11/ssis-json-source-preview-ups.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-8385" class="wp-image-8385 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/11/ssis-json-source-preview-ups.png" alt="JSON Source Preview" width="699" height="728" srcset="https://zappysys.com/blog/wp-content/uploads/2019/11/ssis-json-source-preview-ups.png 699w, https://zappysys.com/blog/wp-content/uploads/2019/11/ssis-json-source-preview-ups-288x300.png 288w" sizes="(max-width: 699px) 100vw, 699px" /></a><p id="caption-attachment-8385" class="wp-caption-text">JSON Source Preview</p></div></li>
<li>That&#8217;s it we are ready to load UPS Pickup Creation Request API call response in SQL Server.</li>
</ol>
<h3><span id="Load_Walmart_API_data_into_SQL_Server">Load UPS REST API data into SQL Server</span></h3>
<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>
<h3>Step 1: Add Upsert Destination to Data Flow</h3>
<ol>
<li>Drag and drop the <strong>Upsert Destination</strong> component from the SSIS Toolbox.</li>
<li>Connect your source component (e.g., JSON / REST / Other Source) to the Upsert Destination.</li>
</ol>
<div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2017/08/ssis-data-flow-drag-drop-upsert-destination.png">
<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>
<p class="wp-caption-text">SSIS - Data Flow - Drang and Drop Upsert Destination Component</p>
</div>
<h3>Step 2: Configure Target Connection</h3>
<ol>
<li>Double-click the <strong>Upsert Destination</strong> component to open the configuration window.</li>
<li>Under <strong>Connection</strong>, select an existing target connection or click <strong>NEW</strong> to create a new connection.
<ul>
<li>Example: SQL Server, or PostgreSQL, or Amazon Redshift.</li>
</ul>
</li>
</ol>
<h3>Step 3: Select or Create Target Table</h3>
<ol>
<li>In the <strong>Target Table</strong> dropdown, select the table where you want to load data.</li>
<li>Optionally, click <strong>NEW</strong> to create a new table based on the source columns.</li>
</ol>
<div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-configuration.png">
<img loading="lazy" decoding="async" class="size-full" alt="" src="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-configuration.png" /></a>
<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>
</div>
<h3>Step 4: Map Columns</h3>
<ol>
<li>Go to the <strong>Mappings</strong> tab.</li>
<li>Click <strong>Auto Map</strong> to map source columns to target columns by name.</li>
<li>Ensure you <strong>check the Primary key column(s)</strong> that will determine whether a record is inserted or updated.</li>
<li>You can manually adjust the mappings if necessary.</li>
</ol>
 <div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-key.png">
<img loading="lazy" decoding="async" class="size-full" alt="" src="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-key.png" /></a>
<p class="wp-caption-text">SSIS Upsert Destination - Columns Mappings</p>
</div>
<h3>Step 5: Save Settings</h3>
<ul>
<li>Click <strong>OK</strong> to save the Upsert Destination configuration.</li>
</ul>
<h3>Step 6: Optional: Add Logging or Analysis</h3>
<ul>
<li>You may add extra destination components to log the number of inserted vs. updated records for monitoring or auditing purposes.</li>
</ul>
<h3>Step 7: Execute the Package</h3>
<ul>
<li>Run your SSIS package and verify that the data is correctly inserted and updated in the target table.</li>
</ul>
<div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2018/12/ssis-upsert-destination-execute.png">
<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>
<p class="wp-caption-text">SSIS Upsert Destination Execution</p>
</div></div>
<h2><span id="Conclusion">Conclusion</span></h2>
<p>After all, we saw you how to make UPS API call using SSIS JSON Source and load response into SQL Server. In this article we made Pickup Creation Request POST API call same way you can make other UPS API calls like Tracking API and Address Verification API and so on by passing relevant URL and JSON string. To explore many other scenarios not discussed in this article download <a href="https://zappysys.com/products/ssis-powerpack/">SSIS PowerPack from here (includes 70+ Components)</a>.</p>
<h2><span id="References">References</span></h2>
<p>Finally, you can use the following links for more information:</p>
<ul>
<li style="list-style-type: none;">
<ul>
<li>Help File: <a href="https://zappysys.com/onlinehelp/ssis-powerpack/scr/json-source.htm" target="_blank" rel="noopener">JSON Source(REST API or File)</a></li>
<li><a href="https://www.ups.com/upsdeveloperkit?loc=en_US" target="_blank" rel="noopener">UPS Developer Kit</a></li>
</ul>
</li>
</ul>
<p>The post <a href="https://zappysys.com/blog/make-ups-api-call-ssis/">How to Make UPS API call in SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Call SurveyGizmo API in SSIS</title>
		<link>https://zappysys.com/blog/call-surveygizmo-api-ssis/</link>
		
		<dc:creator><![CDATA[ZappySys]]></dc:creator>
		<pubDate>Sat, 12 Oct 2019 06:37:13 +0000</pubDate>
				<category><![CDATA[REST API]]></category>
		<category><![CDATA[REST API Integration]]></category>
		<category><![CDATA[SSIS JSON Source (File/REST)]]></category>
		<category><![CDATA[SSIS PowerPack]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[sql server]]></category>
		<category><![CDATA[ssis]]></category>
		<guid isPermaLink="false">https://zappysys.com/blog/?p=8149</guid>

					<description><![CDATA[<p>Introduction In our previous article we Read data from Twilio API in SSIS . Now in this article, we will see example of how to Call SurveyGizmo API in SSIS and load into SQL Server. This blog mainly focuses on SSIS approach but steps mentioned to call SurveyGizmo API Call can be useful for any developer regardless of [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/call-surveygizmo-api-ssis/">Call SurveyGizmo API in SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2><span id="Introduction">Introduction</span></h2>
<p><a href="https://zappysys.com/blog/wp-content/uploads/2019/10/SurveyGizmo.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" class="wp-image-8152 size-thumbnail alignleft" title="PayPal" src="https://zappysys.com/blog/wp-content/uploads/2019/10/SurveyGizmo-150x150.png" alt="SurveyGizmo" width="150" height="150" srcset="https://zappysys.com/blog/wp-content/uploads/2019/10/SurveyGizmo-150x150.png 150w, https://zappysys.com/blog/wp-content/uploads/2019/10/SurveyGizmo-300x300.png 300w, https://zappysys.com/blog/wp-content/uploads/2019/10/SurveyGizmo.png 350w" sizes="(max-width: 150px) 100vw, 150px" /></a>In our previous article we <a href="https://zappysys.com/blog/get-data-from-surveymonkey-in-ssis-using-rest-api/" target="_blank" rel="noopener">Read data from Twilio API in SSIS</a> . Now in this article, we will see example of how to <strong>Call SurveyGizmo API in SSIS</strong> and load into SQL Server. This blog mainly focuses on SSIS approach but steps mentioned to call SurveyGizmo API Call can be useful for any developer regardless of which programming language or tool set you use. we will also see how to store access token and secret in the variable and pass it in the URL using variable.</p>
<p>We will go through the steps to make Survey GetList REST API call which Get a list of all of your surveys and we load it into MS SQL Server.</p>
<p>In nutshell, this post will focus on how to Make SurveyGizmo REST API Call in SSIS.</p>
<p>&nbsp;</p>
<h2><span id="Prerequisites">Prerequisites</span></h2>
<p>Before we perform the steps listed in this article, you will need to make sure the following prerequisites are met:</p>
<ol>
<li><abbr title="SQL Server Integration Services">SSIS</abbr> designer installed. Sometimes 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 Microsoft site</a>).</li>
<li>Basic knowledge of SSIS package development using <em>Microsoft SQL Server Integration Services</em>.</li>
<li>Make sure <a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">ZappySys SSIS PowerPack</a> is installed (<a href="https://zappysys.com/products/ssis-powerpack/download/" target="_blank" rel="noopener">download it</a>).</li>
<li>Credentials of SurveyGizmo API.</li>
</ol>
<h2><span id="What_is_Walmart"><span id="What_is_WordPress">What is SurveyGizmo?</span></span></h2>
<p>SurveyGizmo takes data out of dashboards and puts it into the hands of people who take action. Through the systems they use every day. SurveyGizmo is an online survey solution that makes it easy for businesses of all sorts to create and conduct surveys, polls, quizzes, and questionnaires.  Reaching out to potential and existing customers, managing organizational and employee relationships and conducting academic researches has become convenient through SurveyGizmo.</p>
<ul style="list-style-type: square;">
<li><a href="https://apihelp.surveygizmo.com/help" target="_blank" rel="noopener">Click here to read SurveyGizmo Rest API Documentation.</a></li>
</ul>
<h2>Call SurveyGizmo <span id="Step-By-Step_8211_CallSemantics3_REST_API_using_SSIS">REST API using SSIS JSON Source</span></h2>
<p>Let’s start with an example. We use SSIS JSON Source component to make the call to SurveyGizmo API, we will read list of all available temporary lists and load into SQL Server. First of All, Open Visual Studio and Create New SSIS Package Project.</p>
<ol>
<li>First of All, Drag and drop Data Flow Task from SSIS Toolbox and double click it to edit.
<div id="attachment_7934" style="width: 470px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-7934" class="wp-image-7934 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task.png" alt="Drag and Drop SSIS Data Flow Task from SSIS Toolbox" width="460" height="155" srcset="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task.png 460w, https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task-300x101.png 300w" sizes="(max-width: 460px) 100vw, 460px" /></a><p id="caption-attachment-7934" class="wp-caption-text">Drag and Drop : SSIS Data Flow Task from SSIS Toolbox</p></div></li>
<li>From the SSIS toolbox drag and drop JSON Source on the data flow designer surface.
<div id="attachment_3766" style="width: 604px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/05/ssis-json-source-for-getting-basic-profile-from-linkedin.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3766" class="wp-image-3766 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/05/ssis-json-source-for-getting-basic-profile-from-linkedin.png" alt="Drag and Drop JSON Source Component" width="594" height="268" srcset="https://zappysys.com/blog/wp-content/uploads/2018/05/ssis-json-source-for-getting-basic-profile-from-linkedin.png 594w, https://zappysys.com/blog/wp-content/uploads/2018/05/ssis-json-source-for-getting-basic-profile-from-linkedin-300x135.png 300w" sizes="(max-width: 594px) 100vw, 594px" /></a><p id="caption-attachment-3766" class="wp-caption-text">Drag and Drop JSON Source Component</p></div></li>
<li>Now let&#8217;s add variable for SurveyGizmo Access Token and Secret and Set it in as a value.
<div id="attachment_8156" style="width: 843px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/10/ssis_add_variable.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-8156" class="wp-image-8156 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/10/ssis_add_variable.png" alt="SSIS Add Variable" width="833" height="912" srcset="https://zappysys.com/blog/wp-content/uploads/2019/10/ssis_add_variable.png 833w, https://zappysys.com/blog/wp-content/uploads/2019/10/ssis_add_variable-274x300.png 274w, https://zappysys.com/blog/wp-content/uploads/2019/10/ssis_add_variable-768x841.png 768w" sizes="(max-width: 833px) 100vw, 833px" /></a><p id="caption-attachment-8156" class="wp-caption-text">SSIS Add Variable</p></div></li>
<li>Now double click on JSON Source and enter the following URL with variable as placeholder to get list of your surveys.<br />
<pre class="crayon-plain-tag">https://restapi.surveygizmo.com/v5/survey?page=1&amp;resultsperpage=100&amp;api_token={{User::v_api_token}}&amp;api_token_secret={{User::v_api_token_secret}}</pre>
<div id="attachment_8157" style="width: 730px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/10/ssis-json-source-add-varible-in-url.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-8157" class="wp-image-8157 size-medium_large" src="https://zappysys.com/blog/wp-content/uploads/2019/10/ssis-json-source-add-varible-in-url-768x487.png" alt="JSON Source : URL with variable as placeholder" width="720" height="457" srcset="https://zappysys.com/blog/wp-content/uploads/2019/10/ssis-json-source-add-varible-in-url-768x487.png 768w, https://zappysys.com/blog/wp-content/uploads/2019/10/ssis-json-source-add-varible-in-url-300x190.png 300w, https://zappysys.com/blog/wp-content/uploads/2019/10/ssis-json-source-add-varible-in-url-1024x650.png 1024w, https://zappysys.com/blog/wp-content/uploads/2019/10/ssis-json-source-add-varible-in-url.png 1237w" sizes="(max-width: 720px) 100vw, 720px" /></a><p id="caption-attachment-8157" class="wp-caption-text">JSON Source : URL with variable as placeholder</p></div></li>
<li>Let&#8217;s configure the pagination, go to Pagination tab and select mode as URL Parameter and set the indicator as <pre class="crayon-plain-tag">Page</pre> and configure it like below screen.
<div id="attachment_8158" style="width: 994px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/10/ssis-json-source-surveygizmo-pagination.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-8158" class="wp-image-8158 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/10/ssis-json-source-surveygizmo-pagination.png" alt="JSON Source Pagination" width="984" height="789" srcset="https://zappysys.com/blog/wp-content/uploads/2019/10/ssis-json-source-surveygizmo-pagination.png 984w, https://zappysys.com/blog/wp-content/uploads/2019/10/ssis-json-source-surveygizmo-pagination-300x241.png 300w, https://zappysys.com/blog/wp-content/uploads/2019/10/ssis-json-source-surveygizmo-pagination-768x616.png 768w" sizes="(max-width: 984px) 100vw, 984px" /></a><p id="caption-attachment-8158" class="wp-caption-text">JSON Source Pagination</p></div></li>
<li>You can refer to this article for more details on pagination here <a href="https://zappysys.com/blog/ssis-rest-api-looping-until-no-more-pages-found/" target="_blank" rel="noopener">Understanding REST API Pagination in SSIS / ODBC Drivers</a></li>
<li>Now click on Select Filter button and select the desire filter from the window and click on Preview to get the data.
<div id="attachment_8159" style="width: 730px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/10/ssis-json-source-surveygizmo-preview.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-8159" class="wp-image-8159 size-medium_large" src="https://zappysys.com/blog/wp-content/uploads/2019/10/ssis-json-source-surveygizmo-preview-768x670.png" alt="JSON Source Preview" width="720" height="628" srcset="https://zappysys.com/blog/wp-content/uploads/2019/10/ssis-json-source-surveygizmo-preview-768x670.png 768w, https://zappysys.com/blog/wp-content/uploads/2019/10/ssis-json-source-surveygizmo-preview-300x262.png 300w, https://zappysys.com/blog/wp-content/uploads/2019/10/ssis-json-source-surveygizmo-preview.png 890w" sizes="(max-width: 720px) 100vw, 720px" /></a><p id="caption-attachment-8159" class="wp-caption-text">JSON Source Preview</p></div></li>
<li>That&#8217;s it we are ready to load all SurveyGizmo Surveys data in SQL Server.</li>
</ol>
<h3><span id="Load_Walmart_API_data_into_SQL_Server">Load SurveyGizmo REST API data into SQL Server</span></h3>
<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>
<h3>Step 1: Add Upsert Destination to Data Flow</h3>
<ol>
<li>Drag and drop the <strong>Upsert Destination</strong> component from the SSIS Toolbox.</li>
<li>Connect your source component (e.g., JSON / REST / Other Source) to the Upsert Destination.</li>
</ol>
<div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2017/08/ssis-data-flow-drag-drop-upsert-destination.png">
<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>
<p class="wp-caption-text">SSIS - Data Flow - Drang and Drop Upsert Destination Component</p>
</div>
<h3>Step 2: Configure Target Connection</h3>
<ol>
<li>Double-click the <strong>Upsert Destination</strong> component to open the configuration window.</li>
<li>Under <strong>Connection</strong>, select an existing target connection or click <strong>NEW</strong> to create a new connection.
<ul>
<li>Example: SQL Server, or PostgreSQL, or Amazon Redshift.</li>
</ul>
</li>
</ol>
<h3>Step 3: Select or Create Target Table</h3>
<ol>
<li>In the <strong>Target Table</strong> dropdown, select the table where you want to load data.</li>
<li>Optionally, click <strong>NEW</strong> to create a new table based on the source columns.</li>
</ol>
<div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-configuration.png">
<img loading="lazy" decoding="async" class="size-full" alt="" src="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-configuration.png" /></a>
<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>
</div>
<h3>Step 4: Map Columns</h3>
<ol>
<li>Go to the <strong>Mappings</strong> tab.</li>
<li>Click <strong>Auto Map</strong> to map source columns to target columns by name.</li>
<li>Ensure you <strong>check the Primary key column(s)</strong> that will determine whether a record is inserted or updated.</li>
<li>You can manually adjust the mappings if necessary.</li>
</ol>
 <div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-key.png">
<img loading="lazy" decoding="async" class="size-full" alt="" src="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-key.png" /></a>
<p class="wp-caption-text">SSIS Upsert Destination - Columns Mappings</p>
</div>
<h3>Step 5: Save Settings</h3>
<ul>
<li>Click <strong>OK</strong> to save the Upsert Destination configuration.</li>
</ul>
<h3>Step 6: Optional: Add Logging or Analysis</h3>
<ul>
<li>You may add extra destination components to log the number of inserted vs. updated records for monitoring or auditing purposes.</li>
</ul>
<h3>Step 7: Execute the Package</h3>
<ul>
<li>Run your SSIS package and verify that the data is correctly inserted and updated in the target table.</li>
</ul>
<div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2018/12/ssis-upsert-destination-execute.png">
<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>
<p class="wp-caption-text">SSIS Upsert Destination Execution</p>
</div></div>
<h2><span id="Conclusion">Conclusion</span></h2>
<p>After all, we saw you how to extract information from REST API such as SurveyGizmo and load into SQL Server. We also learned techniques like How to use variable as placeholder in URL and configure the pagination. To explore many other scenarios not discussed in this article download <a href="https://zappysys.com/products/ssis-powerpack/">SSIS PowerPack from here (includes 70+ Components)</a>.</p>
<h2><span id="References">References</span></h2>
<p>Finally, you can use the following links for more information:</p>
<ul>
<li style="list-style-type: none;">
<ul>
<li>Help File: <a href="https://zappysys.com/onlinehelp/ssis-powerpack/scr/json-source.htm" target="_blank" rel="noopener">JSON Source(REST API or File)</a></li>
<li><a href="https://apihelp.surveygizmo.com/help" target="_blank" rel="noopener">SurveyGizmo Rest API</a></li>
</ul>
</li>
</ul>
<p>The post <a href="https://zappysys.com/blog/call-surveygizmo-api-ssis/">Call SurveyGizmo API in SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Read data from Twilio API in SSIS</title>
		<link>https://zappysys.com/blog/call-twilio-rest-api-ssis/</link>
		
		<dc:creator><![CDATA[ZappySys]]></dc:creator>
		<pubDate>Sat, 28 Sep 2019 09:01:43 +0000</pubDate>
				<category><![CDATA[REST API]]></category>
		<category><![CDATA[REST API Integration]]></category>
		<category><![CDATA[SSIS JSON Source (File/REST)]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[sql server]]></category>
		<category><![CDATA[ssis]]></category>
		<guid isPermaLink="false">https://zappysys.com/blog/?p=8076</guid>

					<description><![CDATA[<p>Introduction In our previous article we see How to call REST API in SSIS . Now in this article, we will see example of how to Make Twilio API Call in SSIS and load into SQL Server. This blog mainly focuses on SSIS approach but steps mentioned to call Twilio API Call can be useful for any developer [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/call-twilio-rest-api-ssis/">Read data from Twilio API in SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2><span id="Introduction">Introduction</span></h2>
<p><a href="https://zappysys.com/blog/wp-content/uploads/2019/09/Twilio.jpg" target="_blank" rel="noopener"><img loading="lazy" decoding="async" class="alignleft wp-image-8080 size-thumbnail" title="PayPal" src="https://zappysys.com/blog/wp-content/uploads/2019/09/Twilio-150x150.jpg" alt="Twilio" width="150" height="150" srcset="https://zappysys.com/blog/wp-content/uploads/2019/09/Twilio-150x150.jpg 150w, https://zappysys.com/blog/wp-content/uploads/2019/09/Twilio.jpg 300w" sizes="(max-width: 150px) 100vw, 150px" /></a>In our previous article we see <a href="https://zappysys.com/blog/call-rest-api-using-ssis-web-service-task/" target="_blank" rel="noopener">How to call REST API in SSIS</a> . Now in this article, we will see example of how to <strong>Make Twilio API Call in SSIS</strong> and load into SQL Server. This blog mainly focuses on SSIS approach but steps mentioned to call Twilio API Call can be useful for any developer regardless of which programming language or tool set you use. we will also see how to configure HTTP basic connection.</p>
<p>We will go through the steps to make Accounts REST API call which Returns a list of all Accounts resources and we load it into MS SQL Server.</p>
<p>In nutshell, this post will focus on how to Make Twilio REST API Call in SSIS.</p>
<p>&nbsp;</p>
<h2><span id="Prerequisites">Prerequisites</span></h2>
<p>Before we perform the steps listed in this article, you will need to make sure the following prerequisites are met:</p>
<ol>
<li><abbr title="SQL Server Integration Services">SSIS</abbr> designer installed. Sometimes 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 Microsoft site</a>).</li>
<li>Basic knowledge of SSIS package development using <em>Microsoft SQL Server Integration Services</em>.</li>
<li>Make sure <a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">ZappySys SSIS PowerPack</a> is installed (<a href="https://zappysys.com/products/ssis-powerpack/download/" target="_blank" rel="noopener">download it</a>).</li>
<li>Credentials of Twilio API.</li>
</ol>
<h2><span id="What_is_Walmart"><span id="What_is_WordPress">What is Twilio?</span></span></h2>
<p>Twilio is a cloud communications platform as a service company based in San Francisco, California. It&#8217;s allows software developers programmatically to make and receive phone calls, send and receive text messages, and perform other communication functions using its web service APIs.</p>
<ul style="list-style-type: square;">
<li>Twilio API Documentation : <a href="https://www.twilio.com/docs/usage/api" target="_blank" rel="noopener">Click here to read Twilio Rest API Documentation.</a></li>
</ul>
<h2>Make Call of Twilio <span id="Step-By-Step_8211_CallSemantics3_REST_API_using_SSIS">REST API using SSIS</span></h2>
<p>Let’s start with an example. We use SSIS JSON Source component to make the call to Twilio API, we will read list of all available temporary lists and load into SQL Server. First of All, Open Visual Studio and Create New SSIS Package Project.</p>
<ol>
<li>First of All, Drag and drop Data Flow Task from SSIS Toolbox and double click it to edit.
<div id="attachment_7934" style="width: 470px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-7934" class="wp-image-7934 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task.png" alt="Drag and Drop SSIS Data Flow Task from SSIS Toolbox" width="460" height="155" srcset="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task.png 460w, https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task-300x101.png 300w" sizes="(max-width: 460px) 100vw, 460px" /></a><p id="caption-attachment-7934" class="wp-caption-text">Drag and Drop : SSIS Data Flow Task from SSIS Toolbox</p></div></li>
<li>From the SSIS toolbox drag and drop JSON Source on the data flow designer surface.
<div id="attachment_3766" style="width: 604px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/05/ssis-json-source-for-getting-basic-profile-from-linkedin.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3766" class="wp-image-3766 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/05/ssis-json-source-for-getting-basic-profile-from-linkedin.png" alt="Drag and Drop JSON Source Component" width="594" height="268" srcset="https://zappysys.com/blog/wp-content/uploads/2018/05/ssis-json-source-for-getting-basic-profile-from-linkedin.png 594w, https://zappysys.com/blog/wp-content/uploads/2018/05/ssis-json-source-for-getting-basic-profile-from-linkedin-300x135.png 300w" sizes="(max-width: 594px) 100vw, 594px" /></a><p id="caption-attachment-3766" class="wp-caption-text">Drag and Drop JSON Source Component</p></div></li>
<li>Double click JSON Source and enter the following URL as below to get multiple Account resources and create the HTTP Connection use the same url in the http connection also.<br />
<pre class="crayon-plain-tag">https://api.twilio.com/2010-04-01/Accounts.json</pre>
<div id="attachment_8097" style="width: 677px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-json-source-http-connection-configuration-for-twillio.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-8097" class="wp-image-8097 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-json-source-http-connection-configuration-for-twillio.png" alt="Json Source HTTP connection" width="667" height="879" srcset="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-json-source-http-connection-configuration-for-twillio.png 667w, https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-json-source-http-connection-configuration-for-twillio-228x300.png 228w" sizes="(max-width: 667px) 100vw, 667px" /></a><p id="caption-attachment-8097" class="wp-caption-text">Json Source HTTP connection</p></div></li>
<li>Now click on Select Filter button and select the desire filter from the window.
<div id="attachment_8098" style="width: 787px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-json-source-twillio-filter.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-8098" class="wp-image-8098 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-json-source-twillio-filter.png" alt="Json Source Select Filter" width="777" height="744" srcset="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-json-source-twillio-filter.png 777w, https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-json-source-twillio-filter-300x287.png 300w, https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-json-source-twillio-filter-768x735.png 768w" sizes="(max-width: 777px) 100vw, 777px" /></a><p id="caption-attachment-8098" class="wp-caption-text">Json Source Select Filter</p></div></li>
<li>Go to Pagination Tab and select mode as Response attribute Mode &#8211; Read next page information from response and set up the next page filter.
<div id="attachment_8100" style="width: 1051px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-json-source-twillio-pagination.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-8100" class="wp-image-8100 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-json-source-twillio-pagination.png" alt="JSON Source Preview" width="1041" height="788" srcset="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-json-source-twillio-pagination.png 1041w, https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-json-source-twillio-pagination-300x227.png 300w, https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-json-source-twillio-pagination-768x581.png 768w, https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-json-source-twillio-pagination-1024x775.png 1024w" sizes="(max-width: 1041px) 100vw, 1041px" /></a><p id="caption-attachment-8100" class="wp-caption-text">JSON Source Preview</p></div></li>
<li>You can refer to this article for more details on pagination here <a href="https://zappysys.com/blog/ssis-rest-api-looping-until-no-more-pages-found/" target="_blank" rel="noopener">Understanding REST API Pagination in SSIS / ODBC Drivers</a></li>
<li>Now select the desire options to get the data and click on preview, as here i want parent and missing child also i checked both options and clicked on Preview. if you don&#8217;t want to get parent details you can uncheck it.
<div id="attachment_8106" style="width: 829px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-json-source-twillio-preview.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-8106" class="wp-image-8106 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-json-source-twillio-preview.png" alt="JSON Source Preview" width="819" height="743" srcset="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-json-source-twillio-preview.png 819w, https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-json-source-twillio-preview-300x272.png 300w, https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-json-source-twillio-preview-768x697.png 768w" sizes="(max-width: 819px) 100vw, 819px" /></a><p id="caption-attachment-8106" class="wp-caption-text">JSON Source Preview</p></div></li>
<li>That&#8217;s it we are ready to load all Twilio accounts resources in SQL Server.</li>
</ol>
<h3><span id="Load_Walmart_API_data_into_SQL_Server">Load Twilio REST API data into SQL Server</span></h3>
<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>
<h3>Step 1: Add Upsert Destination to Data Flow</h3>
<ol>
<li>Drag and drop the <strong>Upsert Destination</strong> component from the SSIS Toolbox.</li>
<li>Connect your source component (e.g., JSON / REST / Other Source) to the Upsert Destination.</li>
</ol>
<div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2017/08/ssis-data-flow-drag-drop-upsert-destination.png">
<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>
<p class="wp-caption-text">SSIS - Data Flow - Drang and Drop Upsert Destination Component</p>
</div>
<h3>Step 2: Configure Target Connection</h3>
<ol>
<li>Double-click the <strong>Upsert Destination</strong> component to open the configuration window.</li>
<li>Under <strong>Connection</strong>, select an existing target connection or click <strong>NEW</strong> to create a new connection.
<ul>
<li>Example: SQL Server, or PostgreSQL, or Amazon Redshift.</li>
</ul>
</li>
</ol>
<h3>Step 3: Select or Create Target Table</h3>
<ol>
<li>In the <strong>Target Table</strong> dropdown, select the table where you want to load data.</li>
<li>Optionally, click <strong>NEW</strong> to create a new table based on the source columns.</li>
</ol>
<div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-configuration.png">
<img loading="lazy" decoding="async" class="size-full" alt="" src="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-configuration.png" /></a>
<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>
</div>
<h3>Step 4: Map Columns</h3>
<ol>
<li>Go to the <strong>Mappings</strong> tab.</li>
<li>Click <strong>Auto Map</strong> to map source columns to target columns by name.</li>
<li>Ensure you <strong>check the Primary key column(s)</strong> that will determine whether a record is inserted or updated.</li>
<li>You can manually adjust the mappings if necessary.</li>
</ol>
 <div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-key.png">
<img loading="lazy" decoding="async" class="size-full" alt="" src="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-key.png" /></a>
<p class="wp-caption-text">SSIS Upsert Destination - Columns Mappings</p>
</div>
<h3>Step 5: Save Settings</h3>
<ul>
<li>Click <strong>OK</strong> to save the Upsert Destination configuration.</li>
</ul>
<h3>Step 6: Optional: Add Logging or Analysis</h3>
<ul>
<li>You may add extra destination components to log the number of inserted vs. updated records for monitoring or auditing purposes.</li>
</ul>
<h3>Step 7: Execute the Package</h3>
<ul>
<li>Run your SSIS package and verify that the data is correctly inserted and updated in the target table.</li>
</ul>
<div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2018/12/ssis-upsert-destination-execute.png">
<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>
<p class="wp-caption-text">SSIS Upsert Destination Execution</p>
</div></div>
<h2><span id="Conclusion">Conclusion</span></h2>
<p>After all, we saw you how to extract information from REST API such as Twilio using HTTP Connection and load into SQL Server. We also learned techniques like How to create HTTP Connection and configure the pagination. To explore many other scenarios not discussed in this article download <a href="https://zappysys.com/products/ssis-powerpack/">SSIS PowerPack from here (includes 70+ Components)</a>.</p>
<h2><span id="References">References</span></h2>
<p>Finally, you can use the following links for more information:</p>
<ul>
<li style="list-style-type: none;">
<ul>
<li>Help File: <a href="https://zappysys.com/onlinehelp/ssis-powerpack/scr/json-source.htm" target="_blank" rel="noopener">JSON Source(REST API or File)</a></li>
<li><a href="https://www.twilio.com/docs/usage/api" target="_blank" rel="noopener">Twilio Rest API</a></li>
</ul>
</li>
</ul>
<p>The post <a href="https://zappysys.com/blog/call-twilio-rest-api-ssis/">Read data from Twilio API in SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Make MailPlus OAuth 1.0a REST API Call in SSIS</title>
		<link>https://zappysys.com/blog/make-mailplus-oauth-1-0a-rest-api-call-ssis/</link>
		
		<dc:creator><![CDATA[ZappySys]]></dc:creator>
		<pubDate>Sat, 21 Sep 2019 06:44:08 +0000</pubDate>
				<category><![CDATA[REST API]]></category>
		<category><![CDATA[REST API Integration]]></category>
		<category><![CDATA[SSIS JSON Source (File/REST)]]></category>
		<category><![CDATA[SSIS OAuth Connection]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[mailplus]]></category>
		<category><![CDATA[oauth]]></category>
		<category><![CDATA[oauth1.0]]></category>
		<category><![CDATA[ssis]]></category>
		<guid isPermaLink="false">https://zappysys.com/blog/?p=8043</guid>

					<description><![CDATA[<p>Introduction In our previous article we see How to read call REST API data in SSIS. Now in this article, we will see How to Make MailPlus OAuth 1.0a REST API Call in SSIS and load into SQL Server. This blog mainly focuses on SSIS approach but steps mentioned to call MailPlus Oauth 1.0a REST API Call [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/make-mailplus-oauth-1-0a-rest-api-call-ssis/">How to Make MailPlus OAuth 1.0a REST API Call in SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2><span id="Introduction">Introduction</span></h2>
<p><a href="https://zappysys.com/blog/wp-content/uploads/2019/09/MailPlus.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" class="wp-image-8044 size-thumbnail alignleft" title="PayPal" src="https://zappysys.com/blog/wp-content/uploads/2019/09/MailPlus-150x150.png" alt="MailPlus" width="150" height="150" srcset="https://zappysys.com/blog/wp-content/uploads/2019/09/MailPlus-150x150.png 150w, https://zappysys.com/blog/wp-content/uploads/2019/09/MailPlus.png 300w" sizes="(max-width: 150px) 100vw, 150px" /></a>In our previous article we see <a href="https://zappysys.com/blog/call-rest-api-using-ssis-web-service-task/" target="_blank" rel="noopener">How to read call REST API data in SSIS</a>. Now in this article, we will see <strong>How to Make MailPlus OAuth 1.0a REST API Call in SSIS</strong> and load into SQL Server. This blog mainly focuses on SSIS approach but steps mentioned to call MailPlus Oauth 1.0a REST API Call can be useful for any developer regardless of which programming language or tool set you use. We will also see how to configure OAuth1.0 connection.</p>
<p>We will go through the steps to make temporary lists API call which Returns a list of all available temporary lists and we load it into MS SQL Server.</p>
<p>In nutshell, this post will focus on how to Make MailPlus OAuth 1.0a REST API Call in SSIS.</p>
<p>&nbsp;</p>
<h2><span id="Prerequisites">Prerequisites</span></h2>
<p>Before we perform the steps listed in this article, you will need to make sure the following prerequisites are met:</p>
<ol>
<li><abbr title="SQL Server Integration Services">SSIS</abbr> designer installed. Sometimes 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 Microsoft site</a>).</li>
<li>Basic knowledge of SSIS package development using <em>Microsoft SQL Server Integration Services</em>.</li>
<li>Make sure <a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">ZappySys SSIS PowerPack</a> is installed (<a href="https://zappysys.com/products/ssis-powerpack/download/" target="_blank" rel="noopener">download it</a>).</li>
<li>Credentials of MailPlus API.</li>
</ol>
<h2><span id="What_is_Walmart"><span id="What_is_WordPress">What is MailPlus?</span></span></h2>
<p><a href="https://spotler.com/mailplus-spotler" target="_blank" rel="noopener">MailPlus</a>, founded in 2004, is the number one ESP (Email Service Provider) in the Netherlands. MailPlus is an award winning solution that enables companies to send out their online communication, such as newsletters, easily and professionally.</p>
<h2>Where to get the MailPlus API Key and Secret?</h2>
<p>After activation of the MailPlus REST API in a MailPlus account you can get unique Key and Secret from there. The MailPlus REST API uses Oauth 1.0a (one leg, see Oauth 1.0a (One Leg) ). A consumer key and secret are required to access your MailPlus account. These can be created in your MailPlus account. The Key and Secret are always available via the startpage of a MailPlus account. Click on the tab “MailPlus Settings” and then “MailPlus Rest API”. In MailPlus eCom an authentication is already available.</p>
<h2>Call MailPlus Oauth 1.0a <span id="Step-By-Step_8211_CallSemantics3_REST_API_using_SSIS">REST API using SSIS</span></h2>
<p>Let’s start with an example. We use SSIS JSON Source component to make the call to MailPlus API, we will read list of all available temporary lists and load into SQL Server. First of All, Open Visual Studio and Create New SSIS Package Project.</p>
<ol>
<li>First of All, Drag and drop Data Flow Task from SSIS Toolbox and double click it to edit.
<div id="attachment_7934" style="width: 470px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-7934" class="wp-image-7934 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task.png" alt="Drag and Drop SSIS Data Flow Task from SSIS Toolbox" width="460" height="155" srcset="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task.png 460w, https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task-300x101.png 300w" sizes="(max-width: 460px) 100vw, 460px" /></a><p id="caption-attachment-7934" class="wp-caption-text">Drag and Drop : SSIS Data Flow Task from SSIS Toolbox</p></div></li>
<li>From the SSIS toolbox drag and drop JSON Source on the data flow designer surface.
<div id="attachment_3766" style="width: 604px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/05/ssis-json-source-for-getting-basic-profile-from-linkedin.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3766" class="wp-image-3766 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/05/ssis-json-source-for-getting-basic-profile-from-linkedin.png" alt="Drag and Drop JSON Source Component" width="594" height="268" srcset="https://zappysys.com/blog/wp-content/uploads/2018/05/ssis-json-source-for-getting-basic-profile-from-linkedin.png 594w, https://zappysys.com/blog/wp-content/uploads/2018/05/ssis-json-source-for-getting-basic-profile-from-linkedin-300x135.png 300w" sizes="(max-width: 594px) 100vw, 594px" /></a><p id="caption-attachment-3766" class="wp-caption-text">Drag and Drop JSON Source Component</p></div></li>
<li>Double click JSON Source and enter the following URL as below to get list of all available temporary lists and create the OAuth 1.0 Connection.<br />
<pre class="crayon-plain-tag">https://restapi.mailplus.nl/integrationservice-1.1.0/templist</pre>
<div id="attachment_8047" style="width: 826px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-mailplus-oauth1.0-connection.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-8047" class="wp-image-8047 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-mailplus-oauth1.0-connection.png" alt="MailPlus Oauth 1.0a Connection" width="816" height="906" srcset="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-mailplus-oauth1.0-connection.png 816w, https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-mailplus-oauth1.0-connection-270x300.png 270w, https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-mailplus-oauth1.0-connection-768x853.png 768w" sizes="(max-width: 816px) 100vw, 816px" /></a><p id="caption-attachment-8047" class="wp-caption-text">MailPlus Oauth 1.0a Connection</p></div></li>
<li>Finally click on Preview button to load the data.
<div id="attachment_8048" style="width: 730px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-mailplus-preview-data.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-8048" class="wp-image-8048 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-mailplus-preview-data.png" alt="MailPlus Preview Data" width="720" height="755" srcset="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-mailplus-preview-data.png 720w, https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-mailplus-preview-data-286x300.png 286w" sizes="(max-width: 720px) 100vw, 720px" /></a><p id="caption-attachment-8048" class="wp-caption-text">MailPlus Preview Data</p></div></li>
<li>You can find more MailPlus API Lists here on <a href="https://restdoc.mailplus.nl/doc/" target="_blank" rel="noopener">MailPlus Interactive API Documentation link.</a></li>
<li>That&#8217;s it we are ready to load all available temporary lists in SQL Server.</li>
</ol>
<h3><span id="Load_Walmart_API_data_into_SQL_Server">Load MailPlus REST API data into SQL Server</span></h3>
<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>
<h3>Step 1: Add Upsert Destination to Data Flow</h3>
<ol>
<li>Drag and drop the <strong>Upsert Destination</strong> component from the SSIS Toolbox.</li>
<li>Connect your source component (e.g., JSON / REST / Other Source) to the Upsert Destination.</li>
</ol>
<div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2017/08/ssis-data-flow-drag-drop-upsert-destination.png">
<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>
<p class="wp-caption-text">SSIS - Data Flow - Drang and Drop Upsert Destination Component</p>
</div>
<h3>Step 2: Configure Target Connection</h3>
<ol>
<li>Double-click the <strong>Upsert Destination</strong> component to open the configuration window.</li>
<li>Under <strong>Connection</strong>, select an existing target connection or click <strong>NEW</strong> to create a new connection.
<ul>
<li>Example: SQL Server, or PostgreSQL, or Amazon Redshift.</li>
</ul>
</li>
</ol>
<h3>Step 3: Select or Create Target Table</h3>
<ol>
<li>In the <strong>Target Table</strong> dropdown, select the table where you want to load data.</li>
<li>Optionally, click <strong>NEW</strong> to create a new table based on the source columns.</li>
</ol>
<div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-configuration.png">
<img loading="lazy" decoding="async" class="size-full" alt="" src="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-configuration.png" /></a>
<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>
</div>
<h3>Step 4: Map Columns</h3>
<ol>
<li>Go to the <strong>Mappings</strong> tab.</li>
<li>Click <strong>Auto Map</strong> to map source columns to target columns by name.</li>
<li>Ensure you <strong>check the Primary key column(s)</strong> that will determine whether a record is inserted or updated.</li>
<li>You can manually adjust the mappings if necessary.</li>
</ol>
 <div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-key.png">
<img loading="lazy" decoding="async" class="size-full" alt="" src="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-key.png" /></a>
<p class="wp-caption-text">SSIS Upsert Destination - Columns Mappings</p>
</div>
<h3>Step 5: Save Settings</h3>
<ul>
<li>Click <strong>OK</strong> to save the Upsert Destination configuration.</li>
</ul>
<h3>Step 6: Optional: Add Logging or Analysis</h3>
<ul>
<li>You may add extra destination components to log the number of inserted vs. updated records for monitoring or auditing purposes.</li>
</ul>
<h3>Step 7: Execute the Package</h3>
<ul>
<li>Run your SSIS package and verify that the data is correctly inserted and updated in the target table.</li>
</ul>
<div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2018/12/ssis-upsert-destination-execute.png">
<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>
<p class="wp-caption-text">SSIS Upsert Destination Execution</p>
</div></div>
<h2><span id="Conclusion">Conclusion</span></h2>
<p>After all, we saw you how to extract information from REST API such as MailPlus REST API using OAuth1.0 Connection and load into SQL Server. We also learned techniques like How to create OAuth1.0 Connection. To explore many other scenarios not discussed in this article download <a href="https://zappysys.com/products/ssis-powerpack/">SSIS PowerPack from here (includes 70+ Components)</a>.</p>
<h2><span id="References">References</span></h2>
<p>Finally, you can use the following links for more information:</p>
<ul>
<li style="list-style-type: none;">
<ul>
<li>Help File: <a href="https://zappysys.com/onlinehelp/ssis-powerpack/scr/json-source.htm" target="_blank" rel="noopener">JSON Source(REST API or File)</a></li>
<li><a href="https://restdoc.mailplus.nl/doc/" target="_blank" rel="noopener">MailPlus API</a></li>
</ul>
</li>
</ul>
<p>The post <a href="https://zappysys.com/blog/make-mailplus-oauth-1-0a-rest-api-call-ssis/">How to Make MailPlus OAuth 1.0a REST API Call in SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
