I'll get my excuses in early: I'm a developer with some experience of working with APIs, but this is my first encounter with Salesforce.
We've been given a spec to interface with a customer's Salesforce implementation. The customer has given us some sample code, along with a WSDL file. We're trying to create a simple test application in C# (.Net 4.0) to mirror the sample code we've been given.
We can connect and authenticate to Salesforce (using the
.login method) without any problems - we get a
LoginResult back and everything looks fine. However, the sample we've been given has the following code:
SObject customer = new SObject(); customer.setType(“CustomerContact__c”);
We cannot find any object or class of the type
SObject. There is
sObject (lower case S), but this doesn't have a
The sample code looks fairly simple, so I can't see what I'm doing wrong. Is
SObject (rather than
sObject) a typo in the sample code? Have we been given the wrong WSDL file? Or am I just missing something really obvious?