calling script include in report

Deepthi13
Tera Expert

 

i tried in following way but when i RUN report 0 records where displaying, when i run same script in background script i am getting desired out put after printing. Please suggest.

please find my screen shot and script as below

 

1 ACCEPTED SOLUTION

Just to reiterate: you only call scriptIncludeName().methodName() if you have defined a class for your script include. Deepthi, you have written a classless script include so you need to call it as you were:

javascript: getDupes()

To confirm, you definitely need to have the client callable box ticked in order to call this in a report condition.

View solution in original post

21 REPLIES 21

Thank you 

pawan k singh
Tera Guru

If you have created the Script Include in ServiceNow version "Washington" and above make sure, you have checked the "Sandbox enabled" Checkbox. This will work.

 

Please mark my answer helpful if it helped you.

Sandboxed Enabled.png

Regards

Pawan K Singh