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 :
Finance | Project Operations, Human Resources, ...
Answered

How to Read the file from SFTP in D365 F&O

(1) ShareShare
ReportReport
Posted on by 39
How can I read a file from SFTP, retrieve the data from that file, and process it in D365 F&O X++?
Could you please guide on how to read a file from SFTP using x++.
I'd appreciate any insights or experiences you can share to help me with this.
Thank you!
  • Suggested answer
    Anthony Blake Profile Picture
    3,295 Super User 2026 Season 2 on at
    It depends on the contents of the file, but I would start by looking at Logic Apps or Power Automate to pick up your file from SFTP.

    What you do with the file after that depends on what is in there, but I would guess you need some kind of import.

  • S Gopi Krishna Profile Picture
    685 Super User 2026 Season 1 on at
    We implemented this using the Azure Logic Apps as the X++ customization would be complex and costly.
  • Verified answer
    Layan Jwei Profile Picture
    8,421 Super User 2026 Season 2 on at
    Hi Saran,

    This question was asked before, so please check this link
    https://community.dynamics.com/forums/thread/details/?threadid=28d9fcc6-ed1d-4ed0-9479-718533e552c5
     
    You could also check these two links if they are helpful:
    https://dynamicsax4u.wordpress.com/2020/08/18/read-files-from-sftp-server-and-write-data-in-ax365-part-1/
    https://dynamicsax4u.wordpress.com/2020/08/18/read-files-from-sftp-server-and-write-data-in-ax365-part-2/

    Thanks,
    Layan Jweihan
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future
  • Verified answer
    Judy Profile Picture
    Microsoft Employee on at
  • Suggested answer
    Sankar Ramalingam Profile Picture
    264 on at
    We can achieve this requirement with 3 option:
     
    2. Create your own dll using C# and refer it in x++ if there are complexity requirement like using SSH/private key.
    3. Using Azure Logic apps or Power automate to get the file content from the SFTP and consume the file content using odata action or customer service in D365. (RECOMMENDED)
  • Layan Jwei Profile Picture
    8,421 Super User 2026 Season 2 on at
    Hi,

    Is your question answered? is yes, then please verify the answers that helped

    Thanks,
    Layan Jweihan
     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 536 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 320 Super User 2026 Season 2

#3
CU-1234529-002 Profile Picture

CU-1234529-002 210

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans