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
Shri RajShri Raj 

Upload CSV into Salesforce using JAVA.

Hello All,

I know we can upload a CSV into Salesforce using various different ways. I'm conducting a POC in my company to upload a CSV file into Salesforce using a JAVA program. Can someone please guide or provide any reference links? 

Thanks, 
Shri

Best Answer chosen by Shri Raj
Tony TannousTony Tannous

Hello Shri,

toupload a csv file or to into a record in salesforce from any application you can use the Web Services call.

You need to do the below :

1- connect to salesforce application  setup-->Develop --> API.
2- Click on Generate Enterprise WSDL/Generate Partner WSDL so you can download them.
3- you need to include the wsdl into your application.
4- Simply call the method login to connect  to salesforce + you can call the attachement method/ insert.

Good Luck