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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Send CSV file with power automate to SFTP, from Business Central

(4) ShareShare
ReportReport
Posted on by 99
I have have a requirement to send an csv file generated from within Business Central to an SFTP site.
 
I want to send it to Power Automate, and have Power Automate send that csv onto the SFTP site in one go, without saving the csv file first in a storage blob or Sharepoint site.
 
can this be done?
I have the same question (0)
  • Suggested answer
    Mahek Mehta Profile Picture
    288 on at
    Yes, this can be achieved, but not exactly in the way described.
    Power Automate cannot send a file to SFTP without receiving file content first. However, you do not need to store the file in SharePoint.
    The recommended approach would be:
    1. Generate the CSV file in Business Central using AL.
    2. Convert the file stream to Base64.
    3. Send the Base64 content to Power Automate via an HTTP-triggered flow.
    4. In Power Automate, convert the Base64 string back to binary using base64ToBinary().
    5. Use the SFTP “Create File” action to upload it directly.
    This way, the file is handled entirely in memory within the flow and is not stored in any intermediate location.
    Standard Business Central Power Automate triggers do not support directly passing file streams.
  • Wayne R Profile Picture
    99 on at
    Would this be a similar approach if i was to send the data in Json to Power Automate and convert it in Power Automate to a csv file before sending it on?
  • Suggested answer
    YUN ZHU Profile Picture
    99,086 Super User 2026 Season 1 on at
    Hi, hope the following helps.
    How to export data from Business Central to a csv file with Power Automate (No customization) – JSON to csv
     
    Thanks.
    ZHU
  • Suggested answer
    Dhiren Nagar Profile Picture
    2,898 Super User 2026 Season 1 on at
     
    If you want to use JSON and convert it to CSV, the approach will change a bit.
     
    1 - Create JSON in Business Central.
    2 - Convert it to Base64 and Sent it to Power Automate.
    3 - In Power Automate convert it back from Base64 to JSON (Binary data).
    4 - Convert JSON to CSV.
    5 - Save the CSV in SFTP.
     
    My suggestion is to Convert JSON into CSV inside business central and then send the CSV to Power Automate to make it less complex flow.
     

    Tick the checkbox below to mark the answer as verified, if it helped resolve your question.

    Regards,
    Dhiren.
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,005 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,148 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 557 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans