The Zurich release has arrived! Interested in new features and functionalities? Click here for more

How to call a scoped script include from Global transform map

marclindsay
Tera Guru

Created a script include within a Scoped App, that retrieves a record from the Account and/or Contact table. Set the script include up with Accessible from = "All application scopes".

 

Within a Transform Map that is in the Global application, we are trying to call this script include. We are only getting 'undefined' back from the script include. Though for any Transform Map in the same scope app, this script include works fine. 

 

I am guessing this is security issue, but not sure why a Global item would not be able to access a scoped app script include. 

I tried creating a cross scope privilege record, but the Source Scope cannot be Global. Any help here would be appreciated. 
1 ACCEPTED SOLUTION

Manmohan K
Tera Sage

Hi @marclindsay 

 

Call the script include using API Name like below (It includes scope in it)

 

ManmohanK_0-1687795200551.png

 

var scriptInclude = new sn_vul.VulnerabilityTTRUtil();

 

View solution in original post

6 REPLIES 6

Karan Chhabra6
Mega Sage
Mega Sage

Hi @marclindsay ,

 

Are you querying any scoped table in that script include? 

Please check the configuration for those tables, go to the application access tab and make sure it is accessible from all app scopes and select the checkboxes.

KaranChhabra6_0-1687795294378.png

 

If my answer has helped with your question, please mark it as correct and helpful

 

Thanks!

I have no problem querying the table directly from the scoped app. Only having this issue when using the script include.