1

We are working on a migration application in C# to migrate data from SQL Server to Salesforce and we are using Bulk API and sforceService (Salesforce Enterprise WSDL) for this. We are migrating data with batches and jobs.

My question is that can we programatically upload/insert data in ContentVersion in a batch as well with Bulk API? If so, how please provide some sample code/reference.

1

I think you should be able to upload Content by using Salesforce Dataloader. Please refer below link for more detail :

https://help.salesforce.com/apex/HTViewHelpDoc?id=loader_content.htm

While uploading "Content" through SF Dataloader, you can provide a attribute "PathOnClient", which is the local path of your machine from where you are uploading files to SF.

| improve this answer | |
  • Thanks for your input. I saw that documentation that you suggested; it suggests a way on how to do from the UI from Data Loader. But my requirement is to do that programatically. Do you know how to do it? – Sukhminder Singh Feb 24 '16 at 7:05
  • ^ use a bean! That's just fun to say developer.salesforce.com/page/… – cricketlang Feb 24 '16 at 7:29
  • thanks @cricketlang for the input. Lemme have a look at it. – Sukhminder Singh Feb 24 '16 at 7:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.