NotifyNow - getPreferredE164VoiceNumber(GlideRecord user)

Get a user's preferred E.164-compliant phone number for voice calls.

Table 1. Parameters
Name Type Description
user GlideRecord or String The user record or the sys_id of a user to get the E.164-compliant phone number from.
Table 2. Returns
Type Description
String The E.164-compliant phone number or null.

var userID = "<user sys_id>";
var E164Number = new SNC.NotifyNow().getPreferredE164VoiceNumber(userID);
gs.log('the preferred phone number for setting up voice calls is ' + E164Number + ' for user with id: ' + userID);