- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2023 01:52 AM
Hello,
Implemented the ability to create surveys using "SNC.AssessmentCreation().createAssessments" in PDI.
We have implemented the same in the production environment, but it does not work with an error.
The application scope is different between PDI and the development environment.
Could you please explain the cause of this problem?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 10:49 AM
Probably the script you are executing is not in Global scope.
SNC is an object in Global scope.
Try to create the same script but in Global scope.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2023 02:36 AM
So are you saying it worked in PDI but didn't work in customer instance?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2023 06:24 AM
Yes, as you said.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 10:49 AM
Probably the script you are executing is not in Global scope.
SNC is an object in Global scope.
Try to create the same script but in Global scope.