NotifyNow - isCallable(문자열 참가자)

  • 릴리스 버전: Washingtondc
  • 업데이트 날짜 2024년 02월 01일
  • 읽기1분
  • 사용자가 호출 가능한지 여부를 결정합니다.

    사용자에게 전화를 걸 수 있는 유효한 전화 번호가 있어야 합니다. 이미 활성 세션에 있는 사용자는 호출할 수 없습니다.

    표 1. 매개변수
    이름 유형 설명
    참가자 문자열 또는 GlideRecord sys_user 또는 notifynow_participant 레코드 또는 E.164 호환 전화 번호.
    표 2. 반환
    유형 설명
    부울 이 참가자를 호출할 수 있는지 여부입니다.
    var nn = new SNC.NotifyNow();
    gs.log('by number: ' + nn.isCallable('+31612345678'));
     
    var user = GlideRecord('sys_user');
    user.query('sys_id', '13d39544eb5201003cf587b9d106fea9');
    if (user.hasNext() && user.next())
      gs.log('by user: ' + nn.isCallable(user));
     
    var participant = GlideRecord('notifynow_participant');
    participant.query('sys_id', '33b11430eb1201003cf587b9d106feb9');
    if (participant.hasNext() && participant.next())
      gs.log('by participant: ' + nn.isCallable(participant));