I made a small Java Project to connect to Salesforce and get Leads and Create some new. Got into a problem of creating a new Lead with the "description" property even if i saw the property exists in the Lead Object. I don't understand this, really. Am i missing something?
This works:
JSONObject lead = new JSONObject();
lead.put("FirstName", "Mike");
lead.put("LastName", "Smith");
lead.put("Company", "test.com");
This does not work:
JSONObject lead = new JSONObject();
lead.put("FirstName", "Mike");
lead.put("LastName", "Smith");
lead.put("Company", "test.com");
lead.put("Description", "random text here");
This is what i can see on debug:
[DEBUG] 55:03(Wire.java:wire:72)
http-outgoing-1 << " "message" : "No such column 'Description' on sobject of type Lead",[\n]"
[DEBUG] 55:03(Wire.java:wire:72)
http-outgoing-1 << " "errorCode" : "INVALID_FIELD"[\n]"
But i looked in the Lead object properties. It's there.
Thanks.