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

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();

 

That is how I am calling the script include. still returning 'undefined'

 

realized I was not adding the () after the name. 

was doing the following

            var incFunc = new sn_vul.csmUtils.getName();  

modified to add () and it works now. 

            var incFunc = new sn_vul.csmUtils().getName(); 

 

veer8
Tera Contributor

Hi @Manmohan K.

 

server is side ok, but how to call the client side.