Skip to content

MFT Triggers

Currently, Connect iPaaS provides two triggers for MFT.

Extract Records From New Or Updated CSV Files

The workflow will be triggered when a CSV file is newly created, uploaded or updated in the selected directory of your SFTP file system. The CSV file will then be split into independent events for each record in the file and the events will be sent to the downstream action(s) for further processing.

Get New or Updated Files

The flow will be triggered when any type of file is newly created, uploaded or updated in the selected directory of your SFTP file system.

Triggers for MFT Application on Connect iPaaS

Figure 1. Triggers for MFT Application on Connect iPaaS

Set up Trigger for your Workflow

Once you select an MFT trigger, the common parts are the polling interval and the directory selection UI as shown below:

Polling Interval

This is a scheduled time interval between each scanning process of the selected directory.

Directory UI

This shows the hierarchy of your source SFTP file system. It will show the root path by default when you first select your trigger. And you can step into any directories that you choose. If you want to step out back to the parent directory, click the three little dot symbol which is outlined blue in figure 2.

Common section for MFT Triggers on Connect iPaaS

Figure 2. The common section for Triggers of MFT on Connect iPaaS

Guide to set up the trigger "Extract Records From New Or Updated CSV Files"

Once you set up the polling interval and choose the target directory, you need to give a target CSV file name that you are expecting the trigger to monitor. Beware that the trigger already considers ".csv" as the extension, so no need to type ".csv" extension in the form.

Next step is to set up all the values of the column header which you find at the top row in your CSV file. The trigger can validate the file first and break each record into independent events.

You can keep adding column headers along with column header type by clicking the plus button and delete the incorrect column header value by clicking the minus button. Column header types are the datatype of the column header provided to the user that are string, numeric, and boolean. Refer to the screenshot below.

Please make sure the column headers you put are matching the header column in the CSV file. Connect iPaaS will reject the file if the headers in the actual file don't match the column headers defined in Connect iPaaS.

Followed by the event filters which allow you to choose the incoming trigger event's attributes to define the selection criteria of events to process. See Event Filters to learn more about event event filter in MFT.

MFT Triggers - Extract Records From New Or Updated CSV Files

Figure 3. The set up for MFT Triggers "Extract Records From New Or Updated CSV Files"

Guide to set up the trigger "Get New Or Updated Files"

Once you set up the polling interval and choose the target directory, you need to provide that what kind of file are you expecting. Connect iPaaS provides two options:

Common File Pattern

Select from a drop-down option with 13 common file extensions. For eg: Text File, CSV File, PDF file, etc. Whenever a file with the selected extension is created or updated, the trigger will be processed.

MFT Triggers - Common File Pattern

Figure 4. The common file pattern selection for MFT Triggers "Get New Or Updated Files"

Custom File Pattern

If you don't find your option in the Common file pattern, you can create a regular expression to denote the file extension you want to process. And, whenever a new file with the matched extension is created or updated, the trigger will be processed.

MFT Triggers - Custom File Pattern

Figure 5. The custom file pattern example (regex) for MFT Triggers "Get New Or Updated Files"