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

SMS Javascript

Hi all,

Here iam posting button which executes java script 

This is about sending a single sms to one contact, but i want to send SMS for bulk contacts 

Any changes to be done?



var packagePrefix = "smagicinteract__";
var recordType = 'Shipment_Details__c';
var idToUpdate = '{!Shipment_Details__c.Id}'
var phoneField = 'Dealer_Account_Mobile_No__c';
var nameField = '';
var queryString = parent.window.location.pathname;
if ({
queryString = queryString +
var url = "/apex/"+packagePrefix+"BulkSendSMS?retURL="+queryString + "&objectType="+recordType+"&recordIds="+ idToUpdate+"&phoneField="+phoneField+"&nameField=" ;
parent.window.location = url