Simple Connect and Action
The main action in this extension is the Connect. With this action we can establish connections to the FTP server in a secure way and use it's output variable called connection to perform any other action. You will always need this action to establish an FTPS Connection to the FTP Server.
Use the inputs to fill the Host, Username and Password of the FTP server you want to access. Fill the Client Certificate and Client Certificate Password if it's required, the extension adapts to both ways.
Because this extension uses the Fluent FTPS AutoConnect, there is no need to specify a port.
The TimeoutInMinutes is how much time it takes for the connection to close after the last action using this Connection. If it's set to 0 as it is, it means it will close right after the first action using that Connection is used.
In the example of the image above, it means that the Connection closes right after the GetFileList action, without the need to make a manual Disconnect.
One Connection to many actions
If you don't want to establish a connection everytime you perform an action in the FTP Server you can establish the TimeoutInMinutes of Connect to be bigger than 0. After this you can reuse the Connection output Object of the Connect action in different actions before it closes. Remember the timeout only starts counting after the end of the last action to be performed(Starting with the Connect).
Since we can't save Object type variables in Aggregates in Outsystems for security reasons, I added two actions to the extension to be able to transform the Connection Object into encrypted binary data. This is just to be able to use this feature in outsystems.