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)
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