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

Uploading a 2nd file only if the 1st succeeds – using 1 trigger

Words by

John Carl Villanueva

Overview In our previous post, we showed you how to use two triggers to upload a second file only if the first upload succeeded. Here’s a shorter way to do it.

Published in:

Blog

/

Business Process Automation, FTPS, JSCAPE MFT, Managed File Transfer, SFTP

Overview

In our previous post, we showed you how to use two triggers to upload a second file only if the first upload succeeded. Here’s a shorter way to do it.

You can actually perform the same task using only one (1) trigger. Let me give you an example. Let’s say you’ve set up a scheduled file transfer that performs an SFTP file upload. For those who don’t know how to do that, here are the basic steps.

1. Add a new trigger that uses the Current Time event type

Go to Triggers > Triggers tab, and then click the Add button.

Next, give the trigger a name and then select Current Time from the Event type drop-down list. Click Next to proceed.

2. Specify when you want the scheduled file transfer to run

Let’s say we want our scheduled file transfer to execute every Friday at 8:30 in the evening. To set that up, enter this into the Expression box of the Trigger Conditions dialog.

(Hour = 20) AND (Minute = 30) AND (DayOfWeek = 5)

If this doesn’t make sense, I encourage you to read the article:

Benefits of a Scheduled File Transfer and How To Set One Up

Click the Next button to proceed.

3. Add a file upload trigger action for the first file

The next step would be to choose a file upload trigger action that would upload the first file. For this example, let’s just use the SFTP File Upload trigger action.

Had you previously created a trading partner, you wouldn’t have had to enter several parameters on that dialog. If you want to learn about trading partners, check out these articles:

Preparing Trading Partner Servers For SFTP Automation

Setting Up A Trading Partner For Automated FTP

How To Set Up A Scheduled Automatic Download With A Trading Partner

Setting Up Public Key Authentication Between Trading Partners

Securing Trading Partner File Transfers w/ Auto PGP Encryption & FTPS

Once you’re done, click the OK button.

You should then see your newly created trigger action. Note that this is still for the first upload. You need to add another file upload trigger action for the second file.

4. Add a file upload trigger action for the first file

Let’s say the destination server for the second upload is an FTPS server. In this case, you would need the FTPS File Upload trigger action.

Enter pertinent information.

After clicking OK, you should then see your second trigger action placed right below the trigger action you created earlier. If you want to exchange their positions, thereby allowing the FTPS upload execute before the SFTP upload, then just select the FTPS File Upload trigger action and then click the Up button.

Once you’re done here, click all OK buttons until you’re back at the main screen. As soon as you get there, click the Apply button to finalize the trigger creation process.

That’s it.

Get Started

This tutorial was created using JSCAPE MFT Server, a managed file transfer server built for secure, automated file transfers. If you’d like to follow the steps on this tutorial but don’t have a running installation of JSCAPE MFT Server, you can download a free, fully-functional evaluation edition now.

Download JSCAPE MFT Server Trial

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