You need to sign in to do that
Don't have an account?
Nihar Sharma
Importing Data in salesforce from external system using .csv file with FTP server
Dear All,
Here i have the requirement to use FTP server in salesforce..
-- we have one external system and data inserted into it day by day
-- after that at the end of the day one file(.csv) automatically generated to that external system
-- How can i access of that file(.csv) from external system in salesforce using FTP server
-- after having that file's data i need to insert that data automatically(scheduled) in salesforce which is coming from external system
How can i achieve this ?
Please suggest the way..
Thanks
-Nihar
Here i have the requirement to use FTP server in salesforce..
-- we have one external system and data inserted into it day by day
-- after that at the end of the day one file(.csv) automatically generated to that external system
-- How can i access of that file(.csv) from external system in salesforce using FTP server
-- after having that file's data i need to insert that data automatically(scheduled) in salesforce which is coming from external system
How can i achieve this ?
Please suggest the way..
Thanks
-Nihar
1) You need proxy to access that file from salesforce by HttpRequest.
2) You can create scheduled job to check if there are unprocessed files by request, download that file, parse via apex and perform DML based on file content.
Give a try with the above suggestions which should help you to accelerate with the above requirement.
Mark this as solved if it's resolved.
Best Regards,
Nagendra.P
Thanks.. i will go through your valuable suggestion...
-Nihar
Can you please tell me how to get the proxy access of that file..
i am going to refer this HttpRequest Class...
Sample--
tell me where i need change and get that file and scheduled..
Thanks
-Nihar
Did you find the solution? I am having the same requirement.
We have implemented a REST API which allow to directly communicate with an FTP server. This FTP API is designed for people who need to perform actions like DOWNLOAD, UPLOAD, DELETE and TRANSFER on the FTP server using REST API’s.
FTP API: https://ftp-api.herokuapp.com/
Blog Post: https://medium.com/@adarshsharma.jaipur/how-to-use-ftp-server-using-rest-api-8d1b3f88de0
If your problem have resolve, then mark this solution as a best answer and let me know if you need any other information.