Where is SNC.AssessmentCreation() ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2016 07:05 AM
I am trying to understand the below piece of code especially the first line in which an object is created. I understand it is creating a new assessment i don't understand below points.
1. Where is the AssessmentCreation()(i believe script include) is written? In my Script Include of my instance(Eureka) it is not available and how do i view the code written in AssessmentCreation() ?
2. What is the objective of SNC. ?
3. Can an admin in ServiceNow edit AssessmentCreation() ?
(new SNC.AssessmentCreation()).conditionTrigger(current, 'f4faa78a2b53e100e653224e59da157c');
if(flag){
var gropen = new GlideRecord('asmt_assessment_instance');
gropen.addEncodedQuery(surveys);
gropen.query();
while(gropen.next()){
gropen.state = 'ready';
gropen.update();
}
}
t
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2016 07:25 AM
Unfortunately, I have found that some 'script include' type functions are actually kept in an inaccessible place, either as a flatfile on the filesystem itself, or embedded into the code in a way that we can't modify. I checked my instance, and I have the same call, but can't seem to locate the script include it's calling, either. Since it's headed with "SNC" that further points to it being a system restricted script.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2016 07:26 AM
Hi Aditya,
#1. The AssessmentCreation class is defined at the platform (Java) layer and not directly accessible to customers. It is not a standard script include that you can find in the database.
#2. The objective of the "SNC" prefix is to determine scope (per scoped applications.) It indicates this is a ServiceNow Class.
#3. Answer to #3 is answered in #1. No.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2016 07:41 AM
Chuck Tomasi wrote:
#1. The AssessmentCreation class is defined at the platform (Java) layer and not directly accessible to customers.
Or, indeed, to most employees.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2016 05:00 AM
If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.
If you are viewing this from the community inbox you will not see the correct answer button. If so, please review How to Mark Answers Correct From Inbox View.
Thank you