NotifyNow - sendSMSQuestion(String phoneNumber, String question, GlideRecord sourceRecord)

Send an SMS question.

Table 1. Parameters
Name Type Description
phoneNumber An E.164-compliant phone number to send the message to.
question String or GlideRecord The question record to send or the sys_id of a question record.
sourceRecord An optional source record to associate to the SMS question, such as an incident.
Table 2. Returns
Type Description
String The conversation sys_id, or null if the SMS was not sent successfully.

var question = new GlideRecord("notifynow_question");
// get the first question
if (question.hasNext() && {
	// send the sms question
        var number = "+31612345678";
	var nn = new SNC.NotifyNow();
	nn.sendSMSQuestion(number, question.getUniqueValue(), current);