NotifyNow (Legacy) - Global
-
- UpdatedJan 30, 2025
- 10 minutes to read
- Yokohama
- API reference
The legacy NotifyNow API provides functionality for sending emails, sending SMS messages, and setting up conference calls.
NotifyNow - addConferenceCallParticipant(String conferenceCall, String participant)
Adds ad-hoc users to an ongoing conference call.
When the method is called with a phone number for the participant parameter and there is exactly one sys_user record that matches the phone number, that sys_user record will be related to the participant. The participant's phone number field will be left blank because the phone number is in the sys_user record. If there are several sys_user records that match the phone number, or if there are no results, the participant's phone number field will be filled in, and there will be no stored reference to sys_user because the user is not known.
Name | Type | Description |
---|---|---|
conferenceCall | String or GlideRecord | The sys_id or GlideRecord of an active conference call. |
participant | String or GlideRecord | The sys_id or GlideRecord of a user with an E.164-compliant phone number, or an E.164-compliant phone number. |
Type | Description |
---|---|
GlideRecord | The participant record of the new participant that was added to the conference call. |
Example
Example
Example
NotifyNow - convertLocalPhoneNumberToE164(String userID, String phoneNumber)
Converts a local phone number to an E.164-compliant phone number based on a user's location.
Name | Type | Description |
---|---|---|
userID | String | The sys_id of a sys_user record to get location information from. |
phoneNumber | String | The phone number. |
Type | Description |
---|---|
String | The E.164-compliant phone number. |
Example
NotifyNow - getConferenceCallParticipants(String conferenceCallId, Boolean isCallable)
Returns all participants for a conference call.
Name | Type | Description |
---|---|---|
conferenceCallId | String | The ID of the conference call. |
isCallable | Boolean | An optional flag to return either only the users you can call (true) or those you cannot call (false). |
Type | Description |
---|---|
GlideRecord | The participants |
Example
Example
Example
NotifyNow - getFrequentlyCalledUsers(Number limit)
Returns a number of frequently-called users, up to the limit parameter, in alphabetical order.
Name | Type | Description |
---|---|---|
limit | Number | The maximum number of results. |
Type | Description |
---|---|
GlideRecord | The frequently called users in alphabetical order. |
Example
NotifyNow - getPreferredE164SMSNumber(GlideRecord user)
Returns a user's preferred E.164-compliant phone number for SMS messages.
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. |
Type | Description |
---|---|
String | The E.164-compliant phone number or null. |
Example
NotifyNow - getPreferredE164VoiceNumber(GlideRecord user)
Returns a user's preferred E.164-compliant phone number for voice calls.
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. |
Type | Description |
---|---|
String | The E.164-compliant phone number or null. |
Example
NotifyNow - getPreferredEmailAddress(GlideRecord user)
Returns a user's preferred email address
Name | Type | Description |
---|---|---|
user | GlideRecord or String | The user record or the sys_id of a user to get the email address from. |
Type | Description |
---|---|
String | The email address or null. |
Example
NotifyNow - getReadyState()
Indicates whether Notify is set up correctly or not.
This method can only be accessed by administrators or users with the notifynow_admin role. Users with all other roles get the message False when trying to run the function in a script.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Boolean | True if Notify is set up correctly, otherwise false. |
Example
NotifyNow - getStatus()
Returns the current status of Notify configuration.
This method can only be accessed by administrators or users with the notifynow_admin role. Users with all other roles get the message Unauthorized when trying to run the function in a script.
Name | Type | Description |
---|---|---|
None |
Example
NotifyNow - initiateConferenceCall(String[] conferenceCallParticipants, String conferenceCallTitle)
Initiate a new conference call.
Name | Type | Description |
---|---|---|
conferenceCallParticipants | String | One or more users, conference call participants, identified by the sys_ids from the sys_user table or E.164-compliant phone numbers. |
conferenceCallTitle | String | Title of the conference call. This parameter has a maximum length of 40 characters. |
Type | Description |
---|---|
GlideRecord | The conference call record, or null if there was an error. |
Example
This initiates a conference call with E.164-compliant phone numbers for participants, without the optional source record parameter and and does not send any conference call details via SMS or email.
NotifyNow - initiateConferenceCall(String[] conferenceCallParticipants, String conferenceCallTitle, GlideRecord sourceRecord, Boolean private)
Initiate a new conference call.
Type | Description |
---|---|
GlideRecord | The conference call record, or null if there was an error. |
Example
This initiates a conference call with participants that have a E.164-compliant phone number and participants from the sys_user table and sends conference call details via SMS and email to all participants.
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.
Name | Type | Description |
---|---|---|
participant | String or GlideRecord | A sys_user or notifynow_participant record, or an E.164-compliant phone number. |
Type | Description |
---|---|
boolean | Whether this participant can be called or not. |
Example
NotifyNow - isSMSCapable()
Checks if the telephone number associated with the Twilio account is capable of sending SMS messages.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Boolean | Whether the telephone number associated with the Twilio account is capable of sending SMS messages. |
Example
NotifyNow - isSMSCapable(String userID)
Checks if a user is able to send SMS messages.
Name | Type | Description |
---|---|---|
userID | String | The sys_id of the user you want to check for an SMS-capable phone number. |
Type | Description |
---|---|
Boolean | If the user can send SMS messages. |
Example
NotifyNow - isVoiceCapable()
Checks if the telephone number associated with the Twilio account is capable of setting up phone calls.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Boolean | Whether the telephone number associated with the Twilio account is capable of setting up phone calls. |
Example
NotifyNow - isVoiceCapable(String userID)
Checks if a user is able to make voice calls.
Name | Type | Description |
---|---|---|
userID | String | The sys_id of the user you want to check for a voice-call capable phone number. |
Type | Description |
---|---|
boolean | Whether the user has a voice-call capable phone number. |
Example
NotifyNow - kick(GlideRecord participant)
Removes a participant from a conference call.
Name | Type | Description |
---|---|---|
participant | GlideRecord | The conference call participant to remove from the call. |
Type | Description |
---|---|
Boolean | True if the participant was removed, otherwise false. |
Example
NotifyNow - mute(GlideRecord participant)
Mutes a participant on a conference call.
Name | Type | Description |
---|---|---|
participant | GlideRecord | The conference call participant to mute. |
Type | Description |
---|---|
Boolean | True if the participant was muted, otherwise false. |
Example
NotifyNow - sendEmailQuestion(String emailAddress, String question, GlideRecord sourceRecord, String emailSubject)
Send an email question to an email address.
The sendEmailQuestion method produces a question body and requires users to click a link to indicate their choice.
Type | Description |
---|---|
String | The conversation sys_id. |
Example
This example demonstrates using the default email subject.
Example
This example uses dot-walking and specifies a source record and email subject.
Example
This example uses dot-walking and specifies an email subject but no source record.
NotifyNow - sendSMS(String phoneNumber, String smsBody)
Sends an SMS message to an E.164-compliant mobile phone number.
Notify supports international numbers. Using this method with a number that does not support sending SMS messages results in an error being logged.
Name | Type | Description |
---|---|---|
phoneNumber | String | The E.164-compliant phone number to send the message to. |
smsBody | String | The message to send, maximum 1600 characters. |
Type | Description |
---|---|
void |
Example
NotifyNow - sendSMS(String phoneNumber, String smsBody, GlideRecord source)
Sends an SMS message to an E.164-compliant mobile phone number.
Notify supports international numbers. Using this method with a number that does not support sending SMS messages results in an error being logged.
See also: Advanced configuration for SMS.
Name | Type | Description |
---|---|---|
phoneNumber | String | The E.164-compliant phone number to send the message to. |
smsBody | String | The message to send, maximum 1600 characters. |
source | GlideRecord | The source record to associate with this SMS message. |
Type | Description |
---|---|
void |
Example
Example
This example uses dot-walking and the current record as the source record.
NotifyNow - sendSMSQuestion(String phoneNumber, String question, GlideRecord sourceRecord)
Sends an SMS question.
Name | Type | Description |
---|---|---|
phoneNumber | An E.164-compliant phone number to send the message to. | |
question | String or GlideRecord | The question record to send or the sys_id of a question record. |
sourceRecord | An optional source record to associate to the SMS question, such as an incident. |
Type | Description |
---|---|
String | The conversation sys_id, or null if the SMS was not sent successfully. |
Example
NotifyNow - umute(GlideRecord participant)
Unmutes a participant on a conference call.
Name | Type | Description |
---|---|---|
participant | GlideRecord | The muted conference call participant to unmute. |
Type | Description |
---|---|
Boolean | True if the participant was unmuted, otherwise false. |
Example
On this page
- NotifyNow - addConferenceCallParticipant(String conferenceCall, String participant)
- NotifyNow - convertLocalPhoneNumberToE164(String userID, String phoneNumber)
- NotifyNow - getConferenceCallParticipants(String conferenceCallId, Boolean
isCallable)
- NotifyNow - getFrequentlyCalledUsers(Number limit)
- NotifyNow - getPreferredE164SMSNumber(GlideRecord user)
- NotifyNow - getPreferredE164VoiceNumber(GlideRecord user)
- NotifyNow - getPreferredEmailAddress(GlideRecord user)
- NotifyNow - getReadyState()
- NotifyNow - getStatus()
- NotifyNow - initiateConferenceCall(String[] conferenceCallParticipants, String
conferenceCallTitle)
- NotifyNow - initiateConferenceCall(String[] conferenceCallParticipants, String
conferenceCallTitle, GlideRecord sourceRecord, Boolean private)
- NotifyNow - isCallable(String participant)
- NotifyNow - isSMSCapable()
- NotifyNow - isSMSCapable(String userID)
- NotifyNow - isVoiceCapable()
- NotifyNow - isVoiceCapable(String userID)
- NotifyNow - kick(GlideRecord participant)
- NotifyNow - mute(GlideRecord participant)
- NotifyNow - sendEmailQuestion(String emailAddress, String question, GlideRecord
sourceRecord, String emailSubject)
- NotifyNow - sendSMS(String phoneNumber, String smsBody)
- NotifyNow - sendSMS(String phoneNumber, String smsBody, GlideRecord source)
- NotifyNow - sendSMSQuestion(String phoneNumber, String question, GlideRecord
sourceRecord)
- NotifyNow - umute(GlideRecord participant)