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 :
FastTrack for Dynamics 365 forum
Suggested Answer

SFTP Connection

(1) ShareShare
ReportReport
Posted on by 15

Hi

We had a requirement to export vendor payment files to BANK SFTP folder 

For the SFTP connection, I have a Username, host, port and private key (.ppk format file)

How can I achieve this using X++? 

I refer multiple forums and tried to specify the path given in the private key path, but in run time it shows the error "Invalid private key"

image (6).png
Categories:
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    304,678 Super User 2026 Season 1 on at
    Hi,
     
    Can you share the code you used? Are you using a third-party dll to connect to SFTP folders?
  • NN-26110709-0 Profile Picture
    15 on at
    Hi Andre I was attached my code i am giving filepath and direct key but both time i am facing same error
     
     
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,803 Super User 2026 Season 1 on at
     
    I think you need to upload the files to SFTP via Bussines Event and power automate.

    or you can develop a DLL to connect to SFTP if you don't want to use PA.
     
    Best regards,
    Mohamed Amine MAHMOUDI
  • NN-26110709-0 Profile Picture
    15 on at
    Hi Mohamed

    I need send file as encrypted, but it is possible through Power automate
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,803 Super User 2026 Season 1 on at
     
    Yes you can encrypt your file and send it to PA and then PA will put it in SFTP.
     
    Best regards,
    Mohamed Amine MAHMOUDI
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,803 Super User 2026 Season 1 on at
     
    Is your issue fixed? If yes, then please verify the answers that helped
     
    Best regards,
    Mohamed Amine MAHMOUDI

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > FastTrack for Dynamics 365

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 16 Super User 2026 Season 1

#2
Rashid.Ali Profile Picture

Rashid.Ali 5

#2
Nitesh Kumar Sha Profile Picture

Nitesh Kumar Sha 5

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans