0

As of now i can see, Bulk API samples in JAVA using input as CSV files. but i need an example using JSON input with Bulk Rest API to send the data from java application to salesforce. if any body has sample code please help me.

closed as off-topic by Adrian Larson Jul 20 '18 at 14:16

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions on problems in code you've written must describe the specific problem and include valid code to reproduce it. For help writing short, self-contained syntactically-valid examples, see: SSCCE.org" – Adrian Larson
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Hi Nagarjuna, welcome to SFSE. Please take a moment to scroll through the tour and visit the help center. The format here is specific questions and answers. Posts asking for code samples are off-topic on this site and will usually be closed. If you make an attempt to implement your solution and get stuck on a specific detail, then asking about it here will likely be on topic. – Adrian Larson Jul 20 '18 at 14:19
2

From the Bulk API Developer Guide's Sample JSON File page, you'll find the following sample JSON:

[
   {
      "Name" : "Xytrex Co.",
      "Description" : "Industrial Cleaning Supply Company",
      "Account Number" : "ABC15797531"
   },
   {
      "Name" : "Watson and Powell, Inc.",
      "Description" : "Law firm. New York Headquarters",
      "Account Number" : "ABC24689753"     
   }
]

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