
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 个回答
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.