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

How to upload a xml file to SFTP server from BC Cloud

(0) ShareShare
ReportReport
Posted on by 45

I have used Azure Function to upload a xml file to SFTP Server from BC Cloud by referring the code snippet available in below URL,

https://demiliani.com/2020/03/30/dynamics-365-business-central-saas-save-a-file-to-an-sftp-server/

But I am unable to identify the libraries or dependencies to be added in VS Code in order to make the code to execute.

Can anyone suggest the steps to be followed in order to execute the code such that the xml file should be uploaded to SFTP Server from BC Cloud ?

I have the same question (0)
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    RE: How to upload a xml file to SFTP server from BC Cloud

    Just for clarification on a topic asked on lots of threads here: this post

    demiliani.com/.../

    exaplains a solution that uses an Azure Functions that you can trigger from AL in order to save a file on blob storage and then send it to an SFTP server.

    Today (in BC 20) you can do the same things without using Azure Functions. BC has native support for uploading files to Azure Blob Storage via AL. Save the file here and then use Logic Apps/Power Automate to send the uploaded file to SFTP. Full low code approach in few clicks.

    If you check my latest session on Aeropa, you will find the solution.

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,035 Moderator on at
    RE: How to upload a xml file to SFTP server from BC Cloud

    If you are in BC 19 or BC 20 you should use the native http client i AL to trigger your Azure function.

    Where we do this i send the xml file as http contest to my Azure function and let the Azure function handle the S-FTP part of the transaction.

    But we wrote our own Azure function we did not use the one in Demilliani's blog.

    To use the http client i AL you do not need any additional libraries or app dependencies.

  • Suggested answer
    Marco Mels Profile Picture
    on at
    RE: How to upload a xml file to SFTP server from BC Cloud

    Hello,

    We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist. If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    dynamicsuser.net/.../developers

    I will open this up to the community in case they have something to add. Hopefully Stefano Demiliani can add value. 

    Thanks.

  • Dynamics 635 Forum Profile Picture
    45 on at
    RE: How to upload a xml file to SFTP server from BC Cloud

    Kindly reply

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
Sumit Singh Profile Picture

Sumit Singh 2,708

#2
Sohail Ahmed Profile Picture

Sohail Ahmed 2,675 Super User 2025 Season 2

#3
Jeffrey Bulanadi Profile Picture

Jeffrey Bulanadi 2,203

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans