This site is scheduled for a small content update on Thursday, March 28th, between the hours of 8:00am and 12:00pm (noon) Pacific Time (Mar 28 15:00 – Feb 22 19:00 UTC). Access to this site may be slightly delayed during that time.

Thank you for your feedback.
Form temporarily unavailable. Please try again or contact to submit your comments.
  • Madrid
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store

NotifyNow - convertLocalPhoneNumberToE164(String userID, String phoneNumber)

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

NotifyNow - convertLocalPhoneNumberToE164(String userID, String phoneNumber)

Converts a local phone number to an E.164-compliant phone number based on a user's location.

Table 1. Parameters
Name Type Description
userID String The sys_id of a sys_user record to get location information from.
phoneNumber String The phone number.
Table 2. Returns
Type Description
String The E.164-compliant phone number.

var localPhoneNumber = '01784 221600';
var userName = 'Heath Vanalphen';
var user = new GlideRecord('sys_user');
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') + ')');