web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Assistance Required for Automating File Upload to SFTP Server via AL Business Central

(5) ShareShare
ReportReport
Posted on by 244

Hello Techis,

I need some guidance on automating the process of uploading a file to an SFTP server from AL Business Central. Currently, I’m able to generate the CSV file in a local folder, but I’m unsure how to proceed with the upload process.

  1. Is it possible to automatically upload a file to an SFTP server using AL Business Central, either directly or through the Job Queue functionality?
  2. If it is possible, could you provide a detailed explanation of how to implement this?
  3. If it isn’t possible, could you suggest a workaround to achieve the same result? Thanks in advance for your help!
I have the same question (0)
  • Suggested answer
    Pallavi Phade Profile Picture
    2,665 on at
    Assistance Required for Automating File Upload to SFTP Server via AL Business Central
    Namaste @Rajaneesh H
     
    It is not possbile directly as BCE is on cloud server . for one of customers we used power Automate flow and used premium license 
     
    This link would surely help you  
     
     
    You need Azure Blog Storage or One Drvie link some FTP folder with access 
     
    If you find this helped , Please mark as "Verified"
     
    Regards
    Pallavi Phade
     
  • Suggested answer
    Aman Kakkar Profile Picture
    1,162 on at
    Assistance Required for Automating File Upload to SFTP Server via AL Business Central

    Hi,

    You cannot connect Business Central directly to an SFTP server. However, you can use various middleware solutions to establish the connection between Business Central and the SFTP server.

    The simplest and most efficient option is to use Azure Logic Apps. While there is a small pay-per-action cost, it greatly simplifies the overall development process.

    You can refer to the following video tutorial — just replace the FTP triggers with SFTP triggers, and the setup will work seamlessly:

    FTP with Business Central SAAS Azure Blob Storage - YouTube
     

    High-level steps: 

    1. Generate a CSV file in Business Central and upload it to a container in Azure Blob Storage.
    2. Create a Logic App that triggers whenever a file is added or modified in that Blob container.
    3. In the Logic App, configure an SFTP connection and transfer the file from Blob Storage to the SFTP server.
       
    Hope it helps.
    Aman K
  • Suggested answer
    Robert Jolliffe Profile Picture
    885 on at
    Assistance Required for Automating File Upload to SFTP Server via AL Business Central
    Hi,
     
    SFTP is a way to upload a file to a server - usually used with EDI.  There is no Native AL FTP library (meaning you have to do a LOT of coding).
     
    You have a few choices here.
     
    1) If you are downloading the file to a local folder, you can get some IT Network types to write a PowerShell or even a Command Shell script to use an FTP client to send the file and setup a schedule to run it.  I've done this from a file server in the before times (before cloud) when I wanted to send files to an FTP/SFTP server on a schedule. You need to get the .CSV file to the file server/sharepoint for this to work.  Might be 2 hours for someone who's done scripts (almost any Network Engineer).
     
    2) You could have a programmer code an Azure Function that uses C# or another .NET language to create a FTP function(s) such that the .CSV file created in BC can be passed to this Azure Function FTP method(s) that were written and that would send the file.  I'd estimate at least 20 hours for a competent programmer with all the testing but to be safe maybe 30+.
     
    3) There are some FTP AppSource apps for BC that appear to do this.  Evaluate them.  I see one for $79/mo.
     
     
    I hope that helps.
     
    -Rob
  • Suggested answer
    Rishabh Kanaskar Profile Picture
    5,484 on at
    Assistance Required for Automating File Upload to SFTP Server via AL Business Central
    Hi,
     
    No, AL does not support direct SFTP upload. Options:
    > Power Automate: Trigger a flow from Business Central to upload the file to SFTP.
    > Azure Function/API: Call it from AL using HttpClient to handle SFTP.
    > .NET DLL (On-Prem only): Use SSH.NET via AL DotNet variable.
    > For SaaS, Power Automate or Azure Function is the recommended approach.
     
    Thanks
    Rishabh
  • Suggested answer
    YUN ZHU Profile Picture
    93,919 Super User 2025 Season 2 on at
    Assistance Required for Automating File Upload to SFTP Server via AL Business Central
    Hi, How about using Sharepoint integration? This only requires OAuth2.0 authentication. Hope the following can give you some hints.
    Dynamics 365 Business Central Blog Series: Integrate Business Central with SharePoint
     
    Thanks.
    ZHU
  • Suggested answer
    Nimsara Jayathilaka. Profile Picture
    4,826 on at
    Assistance Required for Automating File Upload to SFTP Server via AL Business Central
    Hi
     
    Yes, it is possible to automate uploading a file to an SFTP server from Dynamics 365 Business Central (SaaS), but not directly via AL code due to sandbox restrictions in the SaaS environment. Instead, the recommended approach uses Azure Functions as a middleware to securely handle the SFTP upload, which can be triggered from AL and optionally scheduled via the Job Queue for automation.
     
     
    Nimsara-

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,267

#2
Sumit Singh Profile Picture

Sumit Singh 2,098

#3
YUN ZHU Profile Picture

YUN ZHU 1,766 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans