Preparing Trading Partner Servers For SFTP Automation

Learn how to create a Trading Partner entity that you can reuse every time you need to create an automated business process involving SFTP.
  1. Blog

Overview

In order to keep transactions secure, you and your trading partners likely use SFTP and other encrypted protocols for your automated data exchanges. In this post, I'd like to share a method that can reduce the steps you typically take in applying SFTP automation to certain business processes. Here, you'll learn how to gather remote host credentials into a single entity, which you can later on reuse every time you need to construct another automated process.

Understanding the problem

Whenever you establish an SFTP connection with a trading partner, you need to specify a set of credentials that will allow you access to that trading partner's SFTP service. These credentials may include pertinent information such as your trading partner's host/IP address, the port number, username, password, a client key, a host key, and so on.

There may not be a problem if you only perform a single task with your trading partner. However, in real-world scenarios, two trading partners will most likely need to engage in several business processes.

For instance, you might need an SFTP file transfer for transmitting a price list, another for a quote request, another for a quote response, yet another for a purchase order, a voucher, and so on.

transactions

Even if all these transactions will require the same set of SFTP connection credentials, you'll still need to enter these credentials every time you try to automate a particular transaction. That's when the problems begin. Not only can constant entering of credentials be time consuming, it can also lead to human errors.

sftp_credentials_different_transactions-1

But that's not all. What if your trading partner later on decides to change any of the credentials? You'll have to go into every single transaction that uses that SFTP connection and change the credentials there. Again, this can be tedious and prone to errors.

trading_partner_sftp_credentials_changed-1

Here's a better way.

The JSCAPE MFT Server solution

In JSCAPE MFT Server , you can define an entity that's also called a Trading Partner. A single Trading Partner can consist of all the necessary attributes for connecting to a trading partner's file transfer service. For instance, a Trading Partner for an SFTP service would again consist of host/IP address, the port number, username, password, a client key, a host key, and so on.

trading_partner_credentials

The advantage of using Trading Partners is that, every time you set up an automated file transfer that requires the credentials and connection settings you've already assigned to a Trading Partner, you simply call that Trading Partner for the job.

using-trading-partner-in-transactions

And if your trading partner changes a credential for that particular SFTP service? All you need to do is edit the Trading Partner and enter the credential that was changed. It's done in a single place; not on every transaction. It's simple, fast, and significantly brings down chances of human errors.

trading_partner_credential_changed

Does that sound like something you could use? Here's how you do it on JSCAPE MFT Server.

Note: I'm going to assume both you and your trading partner already have an SFTP service running on your servers. If you don't have those yet, I suggest you read the post Setting Up An SFTP Service.

1. Add a new Trading Partner

Launch the JSCAPE MFT Server Manager and go to the Trading Partners module. Click Add to add a new Trading Partner.

01-sftp-automation-create-trading-partner

2. Select the SFTP/SCP file transfer protocol

Next, expand the drop-down list and select SFTP/SCP for your Trading Partner's file transfer protocol. Other supported protocols include AS2 , FTP, FTPS, WebDAV and AFTP.

02-select-sftp-connection

3. Enter the required parameters for the SFTP connection

This is where you specify all parameters pertinent to this particular Trading Partner. Because this example involves an SFTP connection, notice that you may even strengthen your authentication processes by employing a Client Key and a Host Key.

Once you've entered everything you need, click the Test Server to test your connection. If it turns out fine, click the OK button.

03-sftp-automation-parameters

You should then see your newly created Trading Partner in your list of Trading Partners. Every time you need to test or edit a Trading Partner's connection settings and credentials, just go here.

04-newly-created-trading-partner-sftp

Here's a screenshot showing some of the Trigger Actions where you can use your Trading Partner objects. Trigger Actions are elements of JSCAPE MFT Server's powerful automation-enabling feature known as Triggers. A discussion on Triggers is beyond the scope of this article but it's something you should allocate some time to. We already have an extensive collection of articles on triggers, so just right-click that link, open up a new tab, and discover a powerful way of automating your business processes.

In the meantime, let's finish off this post.

05-sftp-automation-trading-partner-trigger-actions

Here's one of those Trigger Actions, for example. This is the Trading Partner File Upload action, a trigger action that automatically uploads a file to your trading partner's remote directory in response to certain events.

Notice how, in order to specify settings for your SFTP connection, you only need to select the Trading Partner in question from the Partner drop-down list. There's no need to enter IP addresses, usernames, passwords, etc. Imagine just doing this for every single Trigger Action.

06-file-upload-trading-partner-parameters

To try this out yourself, download a free, fully-functional evaluation of JSCAPE MFT Server now.

Download JSCAPE MFT Server Trial