Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Call script include from Module Arguments

Ronak Jhaveri
Kilo Expert

Hi All

I am trying to call script include from Module arguments but it does not get called. 

Is there anyother way to call script include from arguments

find_real_file.png

find_real_file.png

 

1 ACCEPTED SOLUTION

hvrdhn88
Giga Patron

just confirming here,

 

script include has created in scoped application ?

 

if yes then add scope before the script include 

 

example:

 

&sysparm_fixed_query=company=javascript:gs.getUser().getCompanyID()^location.sys_idINjavascript:new <scope>.getmappedlocation().getmappedlocation();

 

 

View solution in original post

6 REPLIES 6

hvrdhn88
Giga Patron

just confirming here,

 

script include has created in scoped application ?

 

if yes then add scope before the script include 

 

example:

 

&sysparm_fixed_query=company=javascript:gs.getUser().getCompanyID()^location.sys_idINjavascript:new <scope>.getmappedlocation().getmappedlocation();

 

 

vkachineni
Mega Sage

Is SI marked as client callable? 

 

I call a SI from URL

Ex https://ddffdh.service-now.com/sn_customerservice_case_list.do?EXCEL&sysparm_query=javascript:generateGlobalExportFilter('data-allcases')&sysparm_view=csp_exportview

SI generateGlobalExportFilter with the same name function

Marked as client callable, accessible from all scopes

function generateGlobalExportFilter(widget_id, target_user_id) {

}

Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Vinod Kumar Kachineni
Community Rising Star 2022