NotifyNow - convertLocalPhoneNumberToE164(文字列 userID, 文字列 phoneNumber)

  • リリースバージョン: Washingtondc
  • 更新日 2024年02月01日
  • 読む1読むのに数分
  • ユーザーの場所に基づいて、市内電話番号を E.164 準拠の電話番号に変換します。

    表 : 1. パラメーター
    名前 タイプ 説明
    userID 文字列 場所情報を取得する sys_user レコードの sys_id です。
    phoneNumber 文字列 電話番号です。
    表 : 2. 返される内容
    タイプ 説明
    文字列 E.164 準拠の電話番号です。
    var localPhoneNumber = '01784 221600';
    var userName = 'Heath Vanalphen';
     
    var user = new GlideRecord('sys_user');
    user.get('name',userName);
    var E164Number = new SNC.NotifyNow().convertLocalPhoneNumberToE164(user.getUniqueValue(), localPhoneNumber);
    gs.log('converted: ' + localPhoneNumber + ' to ' + E164Number + ' based on ' + user.getValue('name') + 
         '\'s location (' + user.getValue('location') + ')');