<?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>attachment Archives | ZappySys Blog</title>
	<atom:link href="https://zappysys.com/blog/tag/attachment/feed/" rel="self" type="application/rss+xml" />
	<link>https://zappysys.com/blog/tag/attachment/</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>attachment Archives | ZappySys Blog</title>
	<link>https://zappysys.com/blog/tag/attachment/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<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 fetchpriority="high" 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 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 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>Download Salesforce Attachment in SSIS</title>
		<link>https://zappysys.com/blog/download-salesforce-attachment-in-ssis/</link>
		
		<dc:creator><![CDATA[ZappySys Team]]></dc:creator>
		<pubDate>Sat, 26 Dec 2020 20:25:11 +0000</pubDate>
				<category><![CDATA[REST API]]></category>
		<category><![CDATA[SSIS Salesforce Source]]></category>
		<category><![CDATA[attachment]]></category>
		<category><![CDATA[salesforce]]></category>
		<category><![CDATA[ssis]]></category>
		<guid isPermaLink="false">https://zappysys.com/blog/?p=9190</guid>

					<description><![CDATA[<p>Introduction Download Salesforce Attachment in SSIS can be difficult the first time. In this new article, we will show how to download an Attachment from the Salesforce Source into a file using SSIS. Working with images is always tricky the first time. However, with the right article, this process is really simple. This article will show you how [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/download-salesforce-attachment-in-ssis/">Download Salesforce Attachment in SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Introduction</h2>
<p>Download Salesforce Attachment in SSIS can be difficult the first time. In this new article, we will show how to download an Attachment from the <a href="https://zappysys.com/products/ssis-powerpack/ssis-salesforce-source-connector/#:~:text=SSIS%20Salesforce%20Source%20Connector%20(CRM,.com%20Object%20Query%20Language).">Salesforce Source</a> into a file using SSIS. Working with images is always tricky the first time. However, with the right article, this process is really simple. This article will show you how simple it is to do it.</p>
<p>Salesforce is an extremely powerful CRM based in the cloud. This company was created in California, San Francisco and it is a very common request to get the information from the cloud into a file automatically. These can be achieved with our ZappySys SSIS PowerPack plus some SSIS tasks.</p>
<h2>Requirements</h2>
<p>In order 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> installed</li>
<li><a href="https://zappysys.com/products/ssis-powerpack/download/">ZappySys SSIS Powerpack</a> installed</li>
<li>A connection to Salesforce. In order to create a connection to Salesforce, check <a href="https://zappysys.com/products/ssis-powerpack/download/">this video </a>or <a href="https://zappysys.com/blog/export-data-from-salesforce-to-sql-server-using-ssis/">check our article related</a>.</li>
<li>Finally, we will need a file in Salesforce to download.</li>
</ol>
<h2>Getting Started</h2>
<h3>Creating the connection</h3>
<ol>
<li>First of all, in SSDT, create a new SSIS project</li>
<li>In order to create a connection in SSDT, go to the connection manager, and select a new connection.
<div id="attachment_9202" style="width: 560px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-create-gmail-connection.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-9202" class="size-full wp-image-9202" src="https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-create-gmail-connection.png" alt="Salesforce Connection" width="550" height="315" srcset="https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-create-gmail-connection.png 550w, https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-create-gmail-connection-300x172.png 300w" sizes="(max-width: 550px) 100vw, 550px" /></a><p id="caption-attachment-9202" class="wp-caption-text">ssis-create-salesforce-connection</p></div></li>
<li>Also, Select the ZS Salesforce connection. This new connection is created by the <a href="https://zappysys.com/products/ssis-powerpack/download/">ZS SSIS PowerPack</a> plugin mentioned in the requirements. With this connection, we can easily connect to Salesforce and get the Information.
<div id="attachment_9203" style="width: 520px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-salesforce-connection-create.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-9203" class="size-full wp-image-9203" src="https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-salesforce-connection-create.png" alt="Select SSIS Salesforce" width="510" height="488" srcset="https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-salesforce-connection-create.png 510w, https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-salesforce-connection-create-300x287.png 300w" sizes="(max-width: 510px) 100vw, 510px" /></a><p id="caption-attachment-9203" class="wp-caption-text">Select SSIS Salesforce connection</p></div></li>
<li>Finally, write your email, password, and token. For more information about getting the token, please <a href="https://zappysys.com/blog/export-data-from-salesforce-to-sql-server-using-ssis/">check our article related</a>.
<div style="width: 682px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="size-full" src="https://i0.wp.com/zappysys.com/blog/wp-content/uploads/2017/09/export-data-from-salesforce-to-sql-server-using-ssis-salesforce-connection-manager.jpg?w=672&amp;ssl=1" alt="SSIS salesforce credentials" width="672" height="531" /><p class="wp-caption-text">Salesforce credentials in SSIS</p></div></li>
</ol>
<h3>Creating the package</h3>
<ol>
<li>First of All, Drag and drop the Data Flow Task from SSIS Toolbox and double-click it to edit.
<div id="attachment_7934" style="width: 470px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-7934" class="size-full wp-image-7934" 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 : Data Flow Task from SSIS Toolbox</p></div></li>
<li>Secondly, in the Data Flow, we will use the Salesforce Source to connect to Salesforce and get the attachments.
<div id="attachment_1818" style="width: 255px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2017/09/export-data-from-salesforce-to-sql-server-salesforce-source-ssis-component.jpg" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1818" class="wp-image-1818 size-full" title="Drag and Drop Salesforce Source" src="https://zappysys.com/blog/wp-content/uploads/2017/09/export-data-from-salesforce-to-sql-server-salesforce-source-ssis-component.jpg" alt="Drag and Drop Salesforce Source" width="245" height="192" /></a><p id="caption-attachment-1818" class="wp-caption-text">Drag and Drop: Salesforce Source from SSIS Toolbox</p></div></li>
<li>For this purpose, we will use the attachment table from Salesforce.<a href="https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-salesforece-picture.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-9192" src="https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-salesforece-picture.png" alt="" width="886" height="603" srcset="https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-salesforece-picture.png 886w, https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-salesforece-picture-300x204.png 300w, https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-salesforece-picture-768x523.png 768w" sizes="(max-width: 886px) 100vw, 886px" /></a></li>
<li>In addition, we will get the columns from the table. The image is in the body, however, we have additional columns like the id, name, ContenType, BodyLenght, createDate, and more:
<div id="attachment_9193" style="width: 896px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-salesforce-columns.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-9193" class="size-full wp-image-9193" src="https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-salesforce-columns.png" alt="Salesforece columns in SSIS" width="886" height="603" srcset="https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-salesforce-columns.png 886w, https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-salesforce-columns-300x204.png 300w, https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-salesforce-columns-768x523.png 768w" sizes="(max-width: 886px) 100vw, 886px" /></a><p id="caption-attachment-9193" class="wp-caption-text">SSIS Salesforce Columns</p></div></li>
<li>Next, we will need to drag and drop SSIS Derived Column from the SSIS Toolbox below the Salesforce Source and connect it.
<div id="attachment_10219" style="width: 503px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-drag-and-drop-derived-column.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-10219" class="size-full wp-image-10219" src="https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-drag-and-drop-derived-column.png" alt="Drag and drop the Derived Column" width="493" height="345" srcset="https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-drag-and-drop-derived-column.png 493w, https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-drag-and-drop-derived-column-300x210.png 300w" sizes="(max-width: 493px) 100vw, 493px" /></a><p id="caption-attachment-10219" class="wp-caption-text">Drag and drop the Derived Column</p></div></li>
<li>Double-click on the derived column, to specify the path to store the image in a local folder.
<div id="attachment_9194" style="width: 934px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-derived-column-path-download-attachment-salesforece.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-9194" class="size-full wp-image-9194" src="https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-derived-column-path-download-attachment-salesforece.png" alt="saleforece download image" width="924" height="467" srcset="https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-derived-column-path-download-attachment-salesforece.png 924w, https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-derived-column-path-download-attachment-salesforece-300x152.png 300w, https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-derived-column-path-download-attachment-salesforece-768x388.png 768w" sizes="(max-width: 924px) 100vw, 924px" /></a><p id="caption-attachment-9194" class="wp-caption-text">SSIS-derived column download image salesforce</p></div></li>
<li>Now let&#8217;s, drag and drop SSIS Export Column from the SSIS Toolbox &gt;&gt; Other Transforms.
<div id="attachment_10220" style="width: 443px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-drag-and-drop-export-column.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-10220" class="size-full wp-image-10220" src="https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-drag-and-drop-export-column.png" alt="Drag and drop Export Column" width="433" height="291" srcset="https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-drag-and-drop-export-column.png 433w, https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-drag-and-drop-export-column-300x202.png 300w, https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-drag-and-drop-export-column-272x182.png 272w" sizes="(max-width: 433px) 100vw, 433px" /></a><p id="caption-attachment-10220" class="wp-caption-text">Drag and drop Export Column</p></div></li>
<li>Double-click on the Export column to download an image of the body. In the Extract Column map the Body column of File data and the Path Column to where you want to save that file.
<div id="attachment_9191" style="width: 909px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2020/12/download-salesforce-attachment-body.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-9191" class="wp-image-9191 size-full" src="https://zappysys.com/blog/wp-content/uploads/2020/12/download-salesforce-attachment-body.png" alt="Download attachment salesforce" width="899" height="261" srcset="https://zappysys.com/blog/wp-content/uploads/2020/12/download-salesforce-attachment-body.png 899w, https://zappysys.com/blog/wp-content/uploads/2020/12/download-salesforce-attachment-body-300x87.png 300w, https://zappysys.com/blog/wp-content/uploads/2020/12/download-salesforce-attachment-body-768x223.png 768w" sizes="(max-width: 899px) 100vw, 899px" /></a><p id="caption-attachment-9191" class="wp-caption-text">SSIS export column salesforce image</p></div></li>
<li>Finally, we will use the trash destination to get the image and finish the flow.
<div id="attachment_9195" style="width: 267px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-trash-destination.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-9195" class="size-full wp-image-9195" src="https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-trash-destination.png" alt="Destination ssis salesforce" width="257" height="84" /></a><p id="caption-attachment-9195" class="wp-caption-text">SSIS Trash destination</p></div></li>
<li>Now, we are ready. Your package should be something like this:
<div id="attachment_9196" style="width: 340px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-full-salesforce-download-package.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-9196" class="wp-image-9196 size-full" src="https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-full-salesforce-download-package.png" alt="Download Salesforce Attachment in SSIS " width="330" height="322" srcset="https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-full-salesforce-download-package.png 330w, https://zappysys.com/blog/wp-content/uploads/2020/12/ssis-full-salesforce-download-package-300x293.png 300w" sizes="(max-width: 330px) 100vw, 330px" /></a><p id="caption-attachment-9196" class="wp-caption-text">ssis-full-download-package</p></div></li>
<li>Run the package to test it.</li>
<li>If everything is fine, we will be able to see the file. As you can see Downloading Salesforce Attachment in SSIS is a straightforward process.</li>
</ol>
<p>&nbsp;</p>
<h2>Conclusion</h2>
<p>In conclusion, we learned in this article how to Download Salesforce Attachment in SSIS. Basically, you need to use the ZappySys salesforce source, then use the derived column to specify the path and the Export column to get the image. Finally, the ZS Trash destination will be used  If you liked this article, do not hesitate to continue testing and using <a href="https://zappysys.com/">ZappySys PowerPack for SSIS.</a></p>
<p>The post <a href="https://zappysys.com/blog/download-salesforce-attachment-in-ssis/">Download Salesforce Attachment in SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
