Issue calling Script Include in Automated Indicator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10 hours 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.
- Labels:
-
Dashboard
-
Filters
-
Performance Analytics
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10 hours 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
6 hours ago
hi @abhishekrav
is your problem is related to platform analytics ..cozBoth Indicator Sources and Indicators are core components of Performance Analytics (PA), which is a specific application within the ServiceNow platform for tracking, trending, and visualizing key performance indicators over time.
If you like this opinion and your problem is resolved after reviewing and applying it. Please kindly mark this your best answer‌🌠‌ OR mark it Helpful ‌⛑‌ if you think that you get some insight from this content relevant to your problem and help me to contribute more to this community
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
33m 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/