Notify - sendSMS(NotifyPhoneNumber notifyPhoneNumber, String toPhoneNumber, String messageBody, GlideRecord source)

Sends an SMS text message to an E.164-compliant phone number.

This function creates a new record on the Notify Message [notify_message] table and associates it with the source record.

Table 1. Parameters
Name Type Description
notifyPhoneNumber NotifyPhoneNumber The Notify phone number or short code to send this SMS from.
toPhoneNumber String An E.164-compliant phone number to send the SMS to.
messageBody String The SMS text.
source GlideRecord The source record that prompted this SMS message, such as an incident.
Table 2. Returns
Type Description
String The sys_id of the Notify Message [notify_message] record created by this function.