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

Notifications

Announcements

No record found.

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
    301,088 Super User 2025 Season 2 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,431 Super User 2025 Season 2 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,431 Super User 2025 Season 2 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,431 Super User 2025 Season 2 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > FastTrack for Dynamics 365

#1
Paresh Bhagwatwar Profile Picture

Paresh Bhagwatwar 11

#2
Priya_K Profile Picture

Priya_K 8

#3
CU08121023-0 Profile Picture

CU08121023-0 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans