videoIntegration & APIscommunity - not Microsoftreviewed - checked by Opus

FTP, FTPS, SFTP, What's the difference, and what about AL and Business Central

SFTP client in the Business Central system application, shown in a demo app, and how FTP, FTPS and SFTP differ. It covers SSH port 22, password and private key login, fingerprint verification, and the client codeunit methods, which remove the need for an Azure function proxy.

  1. 0:00 Introduction to file transfer protocols
  2. 0:42 FTP protocol history and basics
  3. 1:08 FTP active and passive modes
  4. 3:16 FTPS and SFTP encryption approaches
  5. 4:40 SFTP adoption and Business Central cloud solutions
  6. 5:42 SFTP client demo in Business Central
  7. 8:12 SFTP code unit methods and initialization
  8. 10:10 File upload workflow and SFTP operations
  9. 11:23 Implementation details and closing remarks
video Erik Hougaard · 2026-11-09Watch on YouTube

Overview

Erik Hougaard first explains the file transfer protocols. Classic FTP dates from 1971 and runs on port 21, with active and passive modes. FTPS adds TLS encryption on top of FTP. SFTP is a different protocol that runs inside SSH.

He then shows an SFTP client codeunit in Business Central’s system application using a small demo app. The client can transfer files directly, without an Azure function as a proxy. The video walks through the codeunit methods, fingerprint verification during SSH negotiation, and a file upload workflow.

Key points

  • Classic FTP came about in 1971 and runs on port 21. It is unencrypted and originally used separate control and data connections (active mode, later passive mode).
  • FTPS is FTP with TLS encryption on top. SFTP is the secure file transfer protocol running inside SSH on port 22. They are two completely different protocols.
  • Many banks use SFTP. In the cloud this used to need an Azure function acting as an SFTP proxy, but the Business Central system application now includes an SFTP client codeunit usable directly from AL.
  • The demo connects on port 22 with a host name, username and password. Private key authentication is also supported and is common for bank uploads.
  • Fingerprint verification is part of SSH connection negotiation and lets the client confirm the remote server is the one expected.
  • The codeunit methods include add fingerprint, initialize, list files, get file as stream, file exist, delete file, disconnect, put file, set working directory, is connected and create directory.
  • Initialize returns an SFTP operation response, similar in concept to the Azure blob storage codeunits. Put means upload and get means download, following FTP vocabulary.

Features

Feature Status At
SFTP client in Business Central status not stated, demoed 5:30
SFTP code unit methods status not stated, demoed 8:37
SSH fingerprint verification status not stated, demoed 7:25
Private key authentication for SFTP status not stated 6:49
SFTP operation response structure status not stated 9:58

AL objects mentioned

As heard in the captions. A name that matches one object page by exact type and name links to it; the others stay as named.

  • codeunit “SFTP code client code unit” at 8:37
  • codeunit “Azure blob storage code units” at 10:10

Not found in BC28-30: codeunit “SFTP code client code unit”, codeunit “Azure blob storage code units”.

Quotes

  • 1:08 “classic FTP came about in ’71. Um and it runs on port 21.”
  • 3:42 “One was FTPS, which was just FTP, but you had a a TLS-based encryption on top of it, just like …”
  • 4:51 “encrypted version of the old one sftp is the secure file transfer protocol but inside ssh”
  • 5:55 “we can see now that we actually have in the system application, now we have an SFTP client.”
  • 6:16 “and with this, we don’t have to go to uh to Azure functions. We don’t have to do all of that.”

Presenters (as heard): Eric.