I'm doing an integration using Partner WSDL.
When I try to retrieve more than 15 Leads, it's return NullPointerException and I have 43 Leads. When I try to retieve all my Contacts, it's just return 23 and I have 43 Contacts.
Important, Contacts doesn't do any error, but Leads do. Someone can explain?
I created an Object Lead with all data a Lead in SF can have.
Lead lead = new Lead(); Lead resultL = null; query = connection.query("SELECT" + " Id," + "FirstName," + " LastName," + " Company" + " FROM Lead" + " WHERE Company != NULL" + " ORDER BY CreatedDate" + " DESC"); resultL = lead.queryLeads(connection, query);
The same thing for Contacts.