You need to sign in to do that
Don't have an account?
Query API result set
Hi,
I am trying to call Query API from a JAVA client.
I have set the size of batch 2000 as
qo.setBatchSize(2000);
binding.setHeader(new SforceServiceLocator().getServiceName().getNamespaceURI(),"QueryOptions", qo);
When I am firing the query like
“SELECT Id, Name FROM Opportunity “
The Query result returning exactly 2000 records.
But when I am increasing the field size in the query as below:
SELECT Id, Name , Amount , AccountId, Account.OwnerId, Account.Owner.Employee_Type__c, (SELECT UserId FROM OpportunityTeamMembers) FROM Opportunity
The Query result randomly returning about 1500 or 1600 records.
Is this a bug of SFDC web services API?
Can anybody please help?
Thanks and Regards,
Dinesh Nasipuri
Message Edited by SimonF on 08-22-2007 08:33 AM
Hi Simon,
So there is no guaranty that I will get the 2000 record that I have set 2000 as batch size in my query result. The number of returned record depends upon the size of record.
Thanks and Regards,
Dinesh Nasipuri