I need to develop a custom web service but wanted to know the total# records I can send in one call? Is it 200 records like the SOAP API or any limit? This is update operation into salesforce.

This is the high-level code.

global class MyWebService {    
webService static void makeContact(List<Contact> Contacts) {  
}  //comment to let code be formatted

Would appreciate your feedback.


2 Answers 2


You're only limited by the size of your request.

The maximum request size is 3mb. This is covered under the Static Apex Limits.

Obviously you need to keep within any other Apex limits within your method, but in terms of incoming data all you need to worry about is the request size.


As Alex said you will need to worry on the 3MB size limit of the request body

Since the SOAP custom Services are developed using apex following limits that are applicable to apex will apply

1)You wont be able to insert more than 10000 rows of contact since only 10000 rows you can insert in single call

2)You wont be able to query more than 50K rows in your method

3)You wont be able to do more than 100 SOQL in single context.

If you have large chunk of data ,then call this method in multiple batches .

Also as a best practice of design ensure you are developing this because standard REST API of salesforce were not helpful to you and you want to do some transformation of data once data is inside SFDC .

  • THis is SOAP web service not REST but I got your point. Thanks.
    – sdondeti
    Commented Sep 25, 2014 at 19:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .