Introduction

This article describes how to create a task in BPA Platform that uploads a file to an FTP server when an email is received. Due to the flexibility of BPA Platform, this exercise focuses on the following scenario:

Upload a zip file to an accessible FTP server when requested by a customer

Objectives

Trigger the task when a request email is received
Upload a copy of a file from an accessible location to an FTP server
Populate an HTML template which forms the body of the email
Email the location of the file to the original email recipient

Required Tools

Email Trigger (SMTP)Closed The Email Trigger (SMTP) tool triggers a task to run based on the contents of incoming or outgoing mail sent via an SMTP mail server. — This step triggers the task to run when an email containing specific phrases is received
File ManagementClosed Use the File Management tool to carry out a number of automated actions on single or multiple files — move, copy, rename, and delete — either locally or across the network. Uploads to and downloads from an FTP server are also supported. — The files are uploaded to an FTP site
Run VBScriptClosed The Run VBScript tool is used to create a task step that runs a Visual Basic Script using data produced by other steps in the task. — This step is used to create the FTP folder to upload to
Parse TextClosed The Parse Text tool extracts specific data from variables populated by other steps and then maps the data to other variables for use in further steps. — This step extracts relevant information from the received email
Send Email (SMTP)Closed The Send Email (SMTP) tool sends messages to any SMTP compliant mail server. This tool is capable of sending multiple messages in either text or HTML formats, incorporating data from Input and Format steps to any number of recipients. If recordset data being used from an Input step includes a column containing email addresses, then this can be used as a "dynamic" recipient address. — An email is sent back to the customer with the location of the requested file

This exercise only focuses on the settings needed to fulfil the task. For a detailed description of how to use each tool, refer to the individual tool's guides.

Note: For this article, we use the BPA Platform training database in place of a live customer database; where appropriate, substitute database and account details for your own when building this task. For a copy of the training database, contact your Codeless Platforms business partner.