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
Niki_16Niki_16 

System.Exception: NML:Too many callouts:11

Hi,

 

I have a trigger which is calling my webservice when ever any lead/contact is created/updated/deleted. When i deleted the leads using "mass delete" option in the salesforce, my trigger throws an exception "System.Exception: NML:Too many callouts:", as only 10 callouts are allowed from the trigger.

 

One of the solution to this is to pass the lead/contact Id's concatenated in the form of a string. But as the string has its own length limitations when its being passed to the database using my webservice the id's may get truncated which may generate the errors.

 

Please help!

 

Thanks, Shaveta

Niki_16Niki_16
I changed the logic to pass the data in the form of an array. But passing bulk data in the webservice returns 'read time out' exception.

Kindly help.


Thanks,
Shaveta
Message Edited by Niki_16 on 07-09-2009 10:20 PM