This site is scheduled for a small content update on Tuesday, January 22nd, between the hours of 5:00pm and 8:00pm Pacific Time (Jan 23 01:00 – Jan 23 4: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 docfeedback@servicenow.com to submit your comments.
Versions
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store
Close

NotifyAction - addPlay()

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

NotifyAction - addPlay()

Plays an audio file on the call.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
PlayAction The action added to the NotifyAction object. Use the PlayAction object to define the audio file URL and number of times to loop the audio.

// instantiate NotifyAction
var notifyAction = new SNC.NotifyAction();

// add a play action
var play = notifyAction.addPlay();
play.setURL('http://www.moviesounds.com/2001/imsorry.wav');
play.setLoop(1);
Feedback