function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
GlennWGlennW 

Maximum size of Id array for a retrieve call

What is the maximum size for an Id array when making a retrieve call?

I found out that if you send in an array with 2207 Account Id's you get the soap error:

"EXCEEDED_ID_LIMIT_ON_RETRIEVE: retrieve id limit reached"

Cheers;
GlennW

DevAngelDevAngel
2000, both for retrieve and the max batch size for query.
GlennWGlennW

Dave;

Is this a constant 2000 or is it controlled by the QueryOptionsValue.batchSize?

Cheers
GlennW

 

DevAngelDevAngel

Hi Glenn,

The QueryOptions value is only applicable to the query call.  The retrieve call is not modifiable.

Curtis ParisCurtis Paris
Does this apply to getUpdates() as well?  Will the GetUpdatedResult.getIds() only return 2000 (or QueryOptions.setBatchSize) max?