- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2019 05:32 AM
Dear all,
I am using the following script to initiate a notify call
var notify = new SNC.Notify();
var from = '+41215391714';
var to = '+41786930906';
// set up a conference call
var conferenceCall = new GlideRecord('notify_conference_call');
conferenceCall.active=true;
notify.call(from, to, conferenceCall);
This is working ok if i am in Global scope.
Then if i use this in my scope app, i get error on undefined object SNC.Notify
Any idea how to make it work on scoped app ?
regards
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-10-2019 12:19 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2019 06:03 AM
Try changing to: new global.SNC.Notify()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2019 08:29 AM
hi michael,
same thing happen, SNC.Notify to define in script when used in scopped app.
java.lang.SecurityException: Invalid object in scoped script: [object SNC]
Caused by error in sys_script.599cf5d62f76a30061999bacf699b620.script at line 3
1: (function executeRule(current, previous /*null when async*/) {
2:
==> 3: var notify = new global.SNC.Notify();
4: //get conference information from table
5: var conferenceCall = new GlideRecord('notify_conference_call');
6: conferenceCall.addActiveQuery();
Any other idea ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2019 09:03 PM
In scoped world the API name is changed. In scoped would you need to instantiate sn_notify.NotifyScoped. This information was unfortunately missing from documentation and will be available soon.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2019 01:57 PM
Great it works, how did you find that ?