- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2025 12:10 PM
Hi Ivenna,
The "Major Incident Communication" feature sends out communications (emails) via the Major Incident Communications table (sn_major_inc_mgmt_m2m_comms or related).
You’ll likely already have a Twilio integration set up as a REST message. If not, you'll need a REST message definition
Then you need to create a script include or business Rule:
var phoneNumber = phone_number; //
var messageText = message;
var request = new sn_ws.RESTMessageV2('TwilioSendSMS', 'default');
request.setStringParameterNoEscape('To', phoneNumber);
request.setStringParameterNoEscape('Body', messageText);
var response = request.execute();
var responseBody = response.getBody();
var httpStatus = response.getStatusCode();
if (httpStatus == 201 || httpStatus == 200) {
gs.info("SMS sent successfully");
} else {
gs.error("SMS failed to send: " + responseBody);
}
Thank you
Vignesh
if my response is helpful please mark as helpful and accept the solution