function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
NeeloferNeelofer 

How to read csv file from FTP site using apex without using thirdparty tool..?

Hi All,

Can any one suggest me to read csv file from FTP site and create a record in salesforce using apex and without using any thirdparty tool.


Thanks you
Khan AnasKhan Anas (Salesforce Developers) 
Hi Neelofer,

Greetings to you!

You can't directly access FTP in Apex Code. You can use Salesforce.com Dataloader command line interface ( CLI ) or dataloader.io

Please refer to the below links which might help you further with the above requirement.

http://www.jitendrazaa.com/blog/salesforce/using-dataloader-and-ant-to-backup-salesforce-data-on-ftp-server-video/

https://salesforce.stackexchange.com/questions/57731/how-to-send-and-receive-data-from-salesforce-to-a-ftp-server

https://salesforce.stackexchange.com/questions/35207/creating-a-csv-file-from-apex-and-storing-it-on-a-third-party-server-using-ftp

https://salesforce.stackexchange.com/questions/48892/transferring-csv-file-from-ftp-to-salesforce

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas