The CreatorCon Call for Content is officially open! Get started here.

Issue calling Script Include in Automated Indicator

abhishekrav
Giga Expert

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. 

2 ACCEPTED SOLUTIONS

J Siva
Kilo Patron
Kilo Patron

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

View solution in original post

Thanks for your Help Enabling the Sandbox has resolved the Issue

View solution in original post

5 REPLIES 5

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/