- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I am Trying to call a script include into a Automated Indicator the filter condition i am using is Sys_is is one of javascript: new nameofscriptinclude().function();
The script include is working fine if i call it from a background script it is returning sys_id with comma separated sys_id's.
The script include is Client callable.
I am using Yokohama version.
Can anyone help me out on how to resolve this issue.
Solved! Go to Solution.
- Labels:
-
Dashboard
-
Filters
-
Performance Analytics
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @abhishekrav
Try checking the "Sandbox enabled" check box.
Also, refer the below article to validate your script inlcude.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0832051
Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @abhishekrav ,
Verify Script Include Definition: Ensure your Script Include is clientcallable by setting Client Callable to true....Check Return Value Format: Modify your Script Include to return the Sys IDs in the expected format. For example:
return 'sys_idIN' + sysIds.join(',');
Test your Script Include in various contexts to ensure it behaves as expected across different use cases.
If the issue persists, please provide more details about your Script Include and the specific behavior you're observing, and I'll be glad to assist further....
If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/