You need to sign in to do that
Don't have an account?
CloudResearch
How to insert sObject dynamically using Java and Salesforce API?
I read the blog post "Inserting sObject Dynamically in Salesforce" (http://forceguru.blogspot.com/2011/08/inserting-sobject-dynamically-in.html), and the solution is implemented in Apex. Is it possible to do similar thing in Java application by using Salesforce remote API?
Best regards,
Darko
Yes, you can do similar things via the partner SOAP API, or the REST API.
How to do that (insert sObject dynamically)? API call describeGlobal() does not return sObjects, it returns only DescribeGlobalSObjectResult that gives some description about available objects. Furthermore, SObject in Java does not have put() method as in Apex example http://forceguru.blogspot.com/2011/08/inserting-sobject-dynamically-in.html nor other similar method.
Darko