Thank you for your feedback.
Form temporarily unavailable. Please try again or contact to submit your comments.

NotifyNow - isCallable(String participant)

Log in to subscribe to topics and get notified when content changes.

NotifyNow - isCallable(String participant)

Determines whether a user is callable or not.

A user must have a valid phone number to be callable. A user who is already in an active session is not callable.

Table 1. Parameters
Name Type Description
participant String or GlideRecord A sys_user or notifynow_participant record, or an E.164-compliant phone number.
Table 2. Returns
Type Description
boolean Whether this participant can be called or not.

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() &&
  gs.log('by user: ' + nn.isCallable(user));
var participant = GlideRecord('notifynow_participant');
participant.query('sys_id', '33b11430eb1201003cf587b9d106feb9');
if (participant.hasNext() &&
  gs.log('by participant: ' + nn.isCallable(participant));