+ Start a Discussion
ShamilShamil 

Apex WebSerivce batch size

I have an Apex method exposed as a web service. The method accepts an array of Opportunities: myMethod(Opportunity[]) and performs some logic.

 

 

Question:

What is the max number of Opportunities that can be passed to the method? 

My assumption is that it is 200, similar to the Salesforce API limitation, but I couldn't find a document to prove that.

 

 

Side question: what if my method accepted other objects/types, such as String[] for instance - would that affect the batch size? 

 

 

Thanks,

Shamil