Script Include in Reference Qualifier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2025 06:23 AM
Hello. I'm doing an exercise and need to do this: "I, as an administrator, want the students to be able to enroll only once in each training".
Here's my solution:
A script include:
A reference qualifier in a question in a Record Producer:
javascript: new x_1593181_shark_0.SharkLearningUtils().singleEnroll();
I have tried so many times to make this work, and can't find the error, can you help me?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2025 11:45 PM
1. Did you try to put a log within the script include to check if its getting invoked to return the value?
2. Is the client callable set to true for your scenario?
3. Are you able to get the return value in script include?
Sujatha V.M.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2025 11:58 PM
on your record producer are you having any reference variable?
We don't know the complete details so can't help
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader