Where is documentation for the SNC javascript object?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2019 07:29 PM
I feel like this is going to be one of those questions that has an obvious answer.
I'm looking at the Business Rule: "request closure".
In the Script field, the first statement is: var request = new SNC.Request(current);
(presumably this creates a reference to the sc_request record that triggered the business rule).
Does documentation exist on the SNC.Request object?
Cheers,
Adrian
- Labels:
-
Scripting and Coding
- 6,972 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2019 07:45 PM
Hi Adrian,
That script is defined at the ServiceNow platform (Java) layer and not directly accessible to admins/developers. It is not a standard script include that you can search in the script includes.
Also the prefix SNC tells that this is a ServiceNow class
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2019 09:29 PM
Fair enough, I'm not expecting all code to be readable via a script include or similar.
I think the original question still stands, though. I'm trying to debug request / request item closure behaviour and I don't know what the SNC.Request functions do. I can make assumptions based on function names but it would be nice to have information from an authorised source.
If documentation doesn't exist then I guess I'm out of luck.
Cheers,
Adrian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2019 08:47 PM
Hi Adrian,
Yes the documentation won't be there.
You can check with ServiceNow team on this.
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2019 08:28 PM
Hi Adrian and all,
I cannot find it either.
Where are reference documents of SNC and SNC.Request?
Does anyone know them?
Kody