Use Case 2 – WebSphere Cast Iron Cloud Integration – Fetch CSV File from FTP Server and Insert Data into Salesforce.com

Preface – This post is part of “WebSphere Cast Iron Cloud Integration with Salesforce.com” series.Today I will post how you can use WebSphere Cast Iron for integrating FTP with Salesforce. Toady, in this example, I will fetch a CSV file present in a FTP server, read that file and then create the Salesforce object based on that record. Finally I will send the response also. So let’s not waste time here and get straight into the business.Use Case:Below is the object structure -Below is the CSV File(All_Airports.csv) I would like to read and load from FTP server.Once done, the final requirement is to create Salesforce records based on the data present in the CSV file.Implementation:Before we start implementing the above requirement, let’s create the Endpoints first.Endpoint – FTP:Endpoint – Salesforce:Endpoint – HTTP:Create a default HTTP endpoint with port number 80.Now we will create the Flat File Schema as shown below. This flat file schema will be used to read to CSV file present in the FTP server.So all set. Now we will configure the integration by putting activities inside the Orchestration.Activity# 1: HTTP Receive Request:Below you will find all the configuration details related to Receive Request activity.Activity# 2: FTP Get File: This activity will fetch the CSV file from the FTP Server. The configuration of this activity is displayed below -Activity# 3: Transform Read Flat File:Activity# 4: Salesforce.com Create Objects:In this...

Read More