Question -: We are trying to send SMS via Batch class, But we are receiving following response.

                   Callout Limit exceeded. SMS not sent.

Answer-: When you are sending out message from batch class please check if 

  1. You are using "Value" or "Automation" subscription plan of SMS Magic and not "Starter" one.
  2. You are implementing the Salesforce-provided interface  Database.AllowsCallouts for your batch class.
  3. Do not implement the Salesforce-provided interface Database.Stateful" while declaring your batch class. This interface is keeping a track of records. After execution of every instance, 200 records are stored and it multiplies after every instance. When the code actually tries to insert the record, a huge chunk of database records are created and it results to the error. We have a limitation of max. 100 callouts per instance.

So your batch class first line should be like below where "SendSMSBatch" is name of the class-:

global class SendSMSBatch implements Database.Batchable<sObject>, Database.AllowsCallouts {

If you still face any problem, feel free to write us on for our experts advice.