JSCAPE
  • Products
    • Managed File Transfer
    • JSCAPE SaaS
    • MFT Gateway
    • MFT Monitor
    • All Products
  • Solutions
    • All Solutions
    • Secure File Transfer
    • AS2 Server Software
    • File Synchronization
    • Reverse Proxy
    • Compliance
    • DMZ Streaming
  • Pricing
  • Company
    • Blog
    • Company
    • Contact Us
    • Clients
    • Case Studies
    • Testimonials
    • Certifications
  • Support
    • Help Desk
    • Documentation
    • Customer Downloads
Get a demo

How to move downloaded files on a trading partner

Words by

John Carl Villanueva

Let’s say a trading partner wants you to move files you download from their server to a designated archive folder on that same server. This is a B2B file transfer, so it has to be automated. Here’s what you can do to achieve that using JSCAPE MFT Server.

Published in:

Blog

/

Business Process Automation, JSCAPE MFT, Managed File Transfer, Triggers, Tutorials, Videos

Let’s say a trading partner wants you to move files you download from their server to a designated archive folder on that same server. This is a B2B file transfer, so it has to be automated. Here’s what you can do to achieve that using JSCAPE MFT Server.

Watch the video

Would you prefer to watch a video version of this tutorial instead? You can play the video below. Otherwise, just skip it if you wish to continue reading.

 

Alright. So what I have here is a trigger that automatically downloads files from a trading partner’s remote file transfer server.

edit sftp trading partner

It uses the Current Time event type such that…

current time sftp trading partner download

… it performs the download on a predefined schedule. Basically, it downloads files every Monday, at 8PM.

sftp trading partner download schedule

The trigger action I’m using here is the Trading Partner Regex File Download action, which would allow me to download multiple files in one go.

trading partner file download

As you can see, this trigger action downloads files from the remote directory named /downloadables and stores it in the local directory, ‘C:\sftp-tp downloads’. Because I’m using the *.* wildcard, this means, this trigger action is going to download all the files found in the remote directory.

Again, this is the trigger that performs the download part. Our goal is to move each file downloaded by this trigger into a folder on the same remote host.

trading partner regex file download parameters

To do that, we’re going to create a trigger that consists of:

1. The External File Download event type, and

2. a rename file action for remote hosts. There are several trigger actions that fit the bill, like the AFTP, FTP, FTPS, or SFTP Rename File trigger actions. But tor this example, we’re going to use the Trading Partner Rename File action.

Let’s proceed and add that trigger now.

add new trigger rename

The reason we’re using the External File Download event type is because this event type enables a trigger to handle files downloaded by another trigger. In our case, the trigger we looked at earlier, ‘sftp-tp’.

move files on sftp trading partner after download

You may add some trigger conditions to filter out other similar events but let’s just leave this blank for now.

trigger conditions sftp download

But let’s proceed and add the Trading Partner Rename File trigger action.

add new trigger action rename trading partner

trading partner rename file

In the trigger action’s parameters dialog, we’ll need to specify the following parameters:

  • Partner
  • Remote Directory
  • Source File
  • Destination File

All of these are important.

Let’s talk about the Partner setting first. This represents the trading partner object this action will act on. It’s important that you choose the partner you used in the previous trigger. So, in our case, that would be the ‘sftp-tp’ trading partner.

Next, we go to the Remote Directory field. The value you enter into this field should be the source remote directory of the file(s) you want to move for archiving. In our case, that would be the /downloadables directory, which, if you recall, is just the same directory where we downloaded files from in the previous trigger.

Next up is the Source File field. All you need to do here is enter the %Name% variable. This variable is one of the properties that accompany the External File Download event and it contains the filename of the file that was just downloaded.

Basically, if the previous trigger (which, if you recall, used the Trading Partner Regex File Download action) downloaded multiple files, each of those individual file downloads would raise an External File Download event and this trigger will respond to each of those events. So, if 10 files are downloaded, 10 instances of the External File Download event will be raised, and this trigger will subsequently respond 10 times.

Finally, we go to the Destination File field. This is simply the complete path of the renamed file. Notice that we’re using a different directory here. Instead of the ‘downloadables’ directory, we’re using the ‘archive’ directory. And then we’re appending to that the %Name% variable. So, while the filename is not renamed, the complete path of that file is.

So, for example, if a file’s original complete path is:

/downloadables/file001.txt,

its new complete path, after being renamed, would be:

/archive/file001.txt

In effect, file001.txt is moved from the downloadables directory to the archive directory.

trading partner rename file parameters

changes successfully saved new trigger

That’s it. Now you know how to automatically move files on a trading partner after downloading them using JSCAPE MFT Server

Try this yourself

Would you like to try this yourself? Request the FREE trial of JSCAPE MFT Server now.

Easy To Deploy, Easy To Administer, Easy To Manage

Ready to see how JSCAPE makes managed file transfer so much simpler? Schedule your demo now.

Request a demo

Popular Articles

View more by

JSCAPE
  •  
    1–2 minutes
    23/09/2025

    JSCAPE by Redwood, version 2025.3: New UI continues to make a splash

    Dive back into JSCAPE by Redwood with version 2025.3, bringing more modern UI updates to make using and navigating JSCAPE more intuitive. 

    Read article

  •  
    1–2 minutes
    19/08/2025

    Weathering the economic storm: Expert support is your enterprise file transfer system’s lifeline

    The global economic landscape can be described by one word: “uncertain”. Lingering effects from the 2020 pandemic, combined with new waves of international tariffs throughout 2025, have…

    Read article

  •  
    1–2 minutes
    30/07/2025

    Escape the grip: Why flexible MFT is key to enterprise agility

    Break free from costly vendor lock-in Let’s be blunt: some MFT vendors have built product suites that are less about true partnership and more about proprietary siloing.…

    Read article

  •  
    1–2 minutes
    23/07/2025

    Avoid downtime and threat actors: Getting the best of both worlds in MFT

    For enterprise organizations relying on managed file transfer (MFT) solutions, cybersecurity often feels like an arms race. The need to patch MFT software vulnerabilities to prevent breaches…

    Read article

Related Content

Read more about

JSCAPE MFT
  •  
    1–2 minutes
    30/07/2025

    Escape the grip: Why flexible MFT is key to enterprise agility

    Break free from costly vendor lock-in Let’s be blunt: some MFT vendors have built product suites that are less about true partnership and more about proprietary siloing.…

    Read article

  •  
    1–2 minutes
    03/07/2025

    Consolidate, deploy and thrive: JSCAPE’s formula for MFT success in uncertain times

    Global enterprises today are navigating a landscape marked by significant economic volatility. Fluctuating markets, shifting trade policies and persistent economic uncertainty are compelling enterprise organizations to reevaluate…

    Read article

  •  
    1–2 minutes
    31/03/2025

    SFTP vs. FTPS: Which file transfer software is best for business use?

    What is SFTP? SFTP is a file transfer protocol that’s normally packaged with Secure Shell (SSH), the network protocol most IT administrators use to access and manage…

    Read article

  •  
    1–2 minutes
    25/03/2025

    EDI integration with trading partners: 6 best practices

    Many large companies with high-volume transactions, especially those involved in e-commerce, manufacturing and retail supply chains, have long migrated from manual processes to Electronic Data Interchange (EDI).…

    Read article

Company

  • About Us
  • Contact Us
  • Clients
  • Case Studies
  • Testimonials
  • Privacy Policy
  • Certifications

Resources

  • Managed File Transfer
  • Secure File Transfer
  • Secure FTP Server
  • AS2 Server
  • Reverse Proxy
  • File Upload Processing
  • What Is An AS2 Server?

Support

  • Help Desk
  • Documentation
  • Customer Downloads
JSCAPE

Copyright © 2025 JSCAPE

  • Privacy Policy
  • Cookie Settings