Issue calling Script Include in Automated Indicator

abhishekrav
Tera Contributor

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. 

3 REPLIES 3

J Siva
Tera Sage

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

MackI
Kilo Sage

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

MackI | ServiceNow Developer | 2 *Mainline Certification | LinkedIn Top IT Operation Voice 2023 | Sydney,Australia

kaushal_snow
Mega Sage

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.

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/