Reference Qualifier not working on Custom scope

s_dinesh01
Tera Expert

Hey,

i have written a script include in a custom application and created a catalog variable of type reference with in the custom scope

Script include return the sysids and im using this reference qualifier
javascript: 'sys_idIN' + new sn_docker_spoke.MS_CITM_get_User_Org_Officer().getUserOrgOfficers(current.variables.requested_for);

Its working when i used to call script include in client script and background script
and seems working in global scope reference qualifier

But when im using the reference qualifier in custom scope its not even triggering the script include

can anyone help me on this, thanks in adavance

2 ACCEPTED SOLUTIONS

J Siva
Tera Sage

Hi @s_dinesh01 

Check the accessibility of the script include and update accordingly.

large.png

Regards,

Siva

View solution in original post

Ankur Bawiskar
Tera Patron
Tera Patron

@s_dinesh01 

script include and variable are in same scope?

If script include is in custom scope and variable is in another scope, then possibly cross scope issues is blocking

Did you check that?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

6 REPLIES 6

goldenjc97
Tera Contributor

Make sure your script include 'MS_CITM_get_User_Org_Officer' is accessible from all scopes and client callable is checked.

 

 

J Siva
Tera Sage

Hi @s_dinesh01 

Check the accessibility of the script include and update accordingly.

large.png

Regards,

Siva

s_dinesh01
Tera Expert

i did try with accessible in all scopes and client callable true and false, set no result

Here is a question that has gotten me in the past. Did this work in DEV but not work in PROD? Cross Scope Application Access does not come over in an update set, so if it works in DEV and not in PROD, check that.