SSIS SSIS Template Transform
PreviousNext

SSIS Template Transform can be used to create dynamic strings inside data flow. You can use upstream columns as placeholders or use SSIS variables anywhere in the template to create desired text (e.g. XML / JSON document).

Download SSIS PowerPack

Content

Video Tutorial


Coming soon...

Step-By-Step

  1. Firstly, You need to Download and Install SSIS ZappySys PowerPack.
  2. Once you finished first step, Open Visual Studio and Create New SSIS Package Project.
  3. Now, Drag and Drop SSIS Data Flow Task from SSIS Toolbox.
    SSIS Data Flow Task - Drag and Drop
  4. Here, This is Just Example of How to Insert Data into Smartsheet Using Template Transform

  5. Double click on the Data Flow task to see Data Flow designer surface.
  6. Create Smartsheet Account.
  7. Create Smartsheet and add columns name you want to insert Data.
  8. To perform this task you will need : Access Token, Sheet ID and Column ID
  9. Here, In Visual Studio, drag and drop the OLEDB Source, ZS Template Transform and ZS Web API Destination in the design panel
    SSIS Template Transform - Drag and Drop
  10. In the above step you can use our Free ZS Dummy Data Source too. Click here for more information
  11. We are going to Insert data Using SQL Server Database, connect OLEDB Connection for Data Source.
  12. Let's, Right click on Connection Managers Panel to Create OLEDB Connection, so you can use Source and Context Menu will appear, Select New OLEDB Connection from the Context Menu.
    SSIS OLEDB - Connection
    Now, click on New Button for create Connection.
    SSIS OLEDB - Connection
    Let's Configure Connection Manager, just Follow steps one by one as we have in Screenshot
    SSIS OLEDB - Connection
  13. Double click on OLEDB Source for configure it.
  14. Lets Configure in Connection Manager, just follow below image steps.
    SSIS OLEDB Connection Configure
  15. Click Ok to Save OLEDB Source Editor UI Settings.
  16. Now lets, Double click to configure SSIS ZS Template Transform to create desired ZS REST API Destination for API call.
    Note : This is only use for Insert Into Smartsheet.
    
    Example : This is JSON Format. 
    
    {
      "toTop": true,
      "cells": [
        {
          "columnId": 476590783129476,
          "value": "<%ID%>"
        },
        {
          "columnId": 4980190410499972,
          "value": "<%GeographyKey%>"
        },
        {
          "columnId": 2728390596814724,
          "value": "<%Name%>"
        },
        {
          "columnId": 7231990224185220,
          "value": "<%Destination%>"
        },
        {
          "columnId": 1602490689972100,
          "value": "<%Country%>"
        }
      ]
    }
    
    SSIS Template Transform - Configure
  17. For REST API Destination, you can Select Direct URL or URL from Variable as Request URL Access Mode., In this tutorial we do with HTTP Connection.
  18. Now lets, make REST API call with HTTP Connection.
  19. Let's, Configure HTTP Request properties as below
  20. Right click on Connection Managers Panel to Create HTTP Connection, so you can use Source Path, and Context Menu will appear, Select New Connection from the Context Menu.
    SSSIS HTTP- Create Connection
  21. Select ZS-HTTP Connection Manager from the Connection Managers list and Click on Add Button
    SSIS HTTP- Create Connection
  22. Now, in Connection Manager UI, Enter Web URl (Replace your Sheet ID). for now We do not need Credentials type so select Not Set and You can select if you need it.
    https://api.smartsheet.com/2.0/sheets/YOUR-SHEET-ID/rows
    

    SSIS HTTP- Create Connection
  23. Double click on ZS REST API Destination for configure it.
  24. While configure REST API Destination we need to do below settings.
    • In the Select Connection select HTTP Connection.
    • In the input column for Body select TemplateOutput.
    • For Body you can enter Sample Body if you wish to Test at design time else leave it blank
    • Select Body Content Type as application/json.
    • In the Headers enter Authorization Header like
      Example :  Replace Your Access Token
      
      Authorization: Bearer YOUR-TOKEN-GOES-HERE
      
    SSIS REST API Destination - Configure
  25. Go to Batch Setting mode. Change following settings
    • Check on Enable submitting multiple records
    • For Body Header enter [
    • For Body Footer enter ]
    • For Body Row separator enter , (i.e comma)
    • You can change Body Batch Size to desired value (100 is recommended)
    SSIS REST API Destination - Batch Setting
  26. Click Ok to Save REST API Destination UI Settings.
  27. That’s it run your package to test the entire flow.
    SSIS Template Transform - Execute

Properties

Property Name Description
LoggingMode LoggingMode determines how much information is logged during Package Execution. Set Logging mode to Debugging for maximum log.

Available Options

Option Description
Normal Normal
Medium Medium
Detailed Detailed
Debugging Debugging
PrefixTimestamp When you enable this property it will prefix timestamp before Log messages.
TemplateText Template text which needs to be replaced. Any where in the text you can use input column names as placeholders (e.g. <%CustomerEmail%> ). You can also use user/system variable as placeholder (e.g. {{User::MyVariable}} )

Setting UI

SSIS Template Transform - Setting UI
SSIS Template Transform - Setting UI

Articles / Tutorials

Click here to see all articles for [SSIS Template Transform] category
Update or Insert – Upsert MongoDB Array Items using SSIS

Update or Insert – Upsert MongoDB Array Items using SSIS

Introduction In our previous blog post we saw how to update / delete mongodb array item. Now let’s look at how to Upsert MongoDB Array Items (i.e. Insert Item if not found in Array else Update existing record). Upsert into nested MongoDB Array requires two step process, unfortunately there is no easy way to do […]


How to convert Varbinary to Base64 in SSIS

How to convert Varbinary to Base64 in SSIS

Introduction In this post we will show you how to convert varbinary to Base64 in SSIS. We will use FREE Tasks provided by ZappySys. Preparing Sample Data First let’s create a sample table with some Varbinary datatype. Run following command in SSMS to create a sample table with one sample row.


SSIS Magento data Read / Write using REST API Call

SSIS Magento data Read / Write using REST API Call

Introduction In this post we will lean SSIS Magento data read / write operations. Magento is a very popular eCommerce platform and they offer JSON based REST API and XML based SOAP API. You can use either API based on your need to automate common integration needs. We recommend using REST API (JSON API) if possible […]


Read / Write Zoho CRM data using SSIS REST API Call

Read / Write Zoho CRM data using SSIS REST API Call

Introduction In this post, you will learn how to read / write Zoho CRM data using SSIS (Drag and drop approach without any coding).  We will use SSIS JSON/ REST API Source to extract data from Zoho API and use SSIS Web API Destination to write data to Zoho. We will look at step-by-step instructions to read Zoho CRM […]


Read / Write Smartsheet data using SSIS REST API Call

Read / Write Smartsheet data using SSIS REST API Call

Introduction In this post you will learn how to Read / write Smartsheet data using SSIS (Drag and drop approach without any coding).  We will use SSIS JSON/ REST API Source to extract data from Smartsheet API and use SSIS Web API Destination to write data to Smartsheet. This approach is similar to our previous […]


Load SQL Server data to Workday using SSIS / SOAP API

Load SQL Server data to Workday using SSIS / SOAP API

Introduction In our previous article, we saw step-by-step approach to read data from workday using SSIS. In this article, we will focus on how to load SQL Server data to Workday (e.g. POST, Create, Update). We will use SSIS Web API Destination and the combination of other Transforms such as SSIS Template Transform and SSIS XML Generator […]


Update MongoDB Array Items using SSIS

Update MongoDB Array Items using SSIS

Introduction In our previous blog post we saw how to perform Read and Write operations in MongoDB using SSIS (i.e. Bulk Update, Delete, Upsert, Insert). In this post we specifically focus on how to update MongoDB Array items / elements using SSIS. To make things simple to follow we have used JSON Source to produce […]


How to Read / Write Amazon DynamoDB in SSIS

How to Read / Write Amazon DynamoDB in SSIS

Introduction In this article we will look at how to Read / Write Amazon DynamoDB in SSIS. ZappySys developed many AWS related components but in this article we will look at 3 Tasks/Components for DynamoDB Integration Scenarios (Read, Write, Update, Bulk Insert, Create / Drop Table etc.). We will discuss how to use SSIS DynamoDB Source Connector […]


5 Ways to Export JSON from SQL Server using SSIS

5 Ways to Export JSON from SQL Server using SSIS

Introduction SQL Server 2012 and all previous versions lacking native JSON support, same theory is true for their ETL Platform SSIS. If you are one of them who wants to export JSON from SQL Server or any other RDBMS like MySQL, Oracle then you can easily output complex JSON using any of the following components. Five ways of […]



Copyrights reserved. ZappySys LLC.