Skip to main content

Notifications

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"

Categories:
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    23,368 Super User 2025 Season 1 on at
    SFTP Connection
     
    Is your issue fixed? If yes, then please verify the answers that helped
     
    Best regards,
    Mohamed Amine MAHMOUDI
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    23,368 Super User 2025 Season 1 on at
    SFTP Connection
     
    Yes you can encrypt your file and send it to PA and then PA will put it in SFTP.
     
    Best regards,
    Mohamed Amine MAHMOUDI
  • NN-26110709-0 Profile Picture
    15 on at
    SFTP Connection
    Hi Mohamed

    I need send file as encrypted, but it is possible through Power automate
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    23,368 Super User 2025 Season 1 on at
    SFTP Connection
     
    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
    SFTP Connection
    Hi Andre I was attached my code i am giving filepath and direct key but both time i am facing same error
     
     
  • André Arnaud de Calavon Profile Picture
    294,939 Super User 2025 Season 1 on at
    SFTP Connection
    Hi,
     
    Can you share the code you used? Are you using a third-party dll to connect to SFTP folders?

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > FastTrack for Dynamics 365 forum

#1
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 12 Super User 2025 Season 1

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 6

#2
Sahra Profile Picture

Sahra 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans