Unable to Send Messages Using Custom Triggers
Issue Scenario
When the disableSMSOnTrigger value is set to 0 the SMS History records are created but do not reach the portal. Also when the disableSMSOnTrigger value is set to 1, the SMS History records are created but do not reach the portal
Possible Causes
The possible reasons may cause this issue:
•If the disableSMSOnTrigger value is 0, we have to conduct a check on all future call limits before sending out an SMS. This does not allow the SMS to be sent to the portal if future methods are exhausted for the request.
•The Trigger which creates the SMS History record is usually invoked from either a batch or a future method. This results in 0 limits for future method invocations of the SMSUtility code request.
•If the disableSMSOnTrigger value is 1, then, the customer needs to perform the callout by themselves.
Solution
Follow the given procedure to resolve the issue:
1.Schedule the SMS History record creation or add it as a job that can be queued.
Or
Perform the callout in the batch context and then create the SMS History record later with the disableSMSonTrigger value as 1.
0 Comments