Skip to main content
Hi. 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");

 

Thanks.
3 个回答
  1. 2016年1月8日 11:20
    Hi Gabriela Radu ,

     

    You might get an answer here - there are tons of really smart admins in this community - however, this Answers Community is focused on configuration and design questions. Programmatic questions are best submitted to the developer forums at

     

     https://developer.salesforce.com

     

    http://salesforce.stackexchange.com/

     

    where the forums and participants are geared toward programming troubleshooting and support and the users there focus on code so you may get quicker answers as well as a wider variety of options.

     

    PS: Mark a best answer as well so that thread is closed and help us to keep community clean.

     

    Hi Gabriela Radu , You might get an answer here - there are tons of really smart admins in this community - however, this Answers Community is focused on configuration and design questions.
0/9000