NotifyNow - sendSMSQuestion(文字列 phoneNumber, 文字列 question, GlideRecord sourceRecord)

  • リリースバージョン: Washingtondc
  • 更新日 2024年02月01日
  • 読む1読むのに数分
  • SMS 質問を送信します。

    表 : 1. パラメーター
    名前 タイプ 説明
    phoneNumber メッセージの送信先の E.164 に準拠した電話番号です。
    question 文字列または GlideRecord 送信する質問レコードまたは質問レコードの sys_id です。
    sourceRecord インシデントなどの SMS 質問に関連付けるオプションのソースレコード。
    表 : 2. 返される内容
    タイプ 説明
    文字列 会話の sys_id。SMS が正常に送信されなかった場合は null です。
    var question = new GlideRecord("notifynow_question");
    question.query();
     
    // get the first question
    if (question.hasNext() && question.next()) {
    	// send the sms question
            var number = "+31612345678";
    	var nn = new SNC.NotifyNow();
    	nn.sendSMSQuestion(number, question.getUniqueValue(), current);
    }