- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2023 08:51 AM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2023 09:00 AM
Hi @marclindsay
Call the script include using API Name like below (It includes scope in it)
var scriptInclude = new sn_vul.VulnerabilityTTRUtil();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2023 09:00 AM
Hi @marclindsay
Call the script include using API Name like below (It includes scope in it)
var scriptInclude = new sn_vul.VulnerabilityTTRUtil();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2023 01:06 PM
That is how I am calling the script include. still returning 'undefined'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2023 05:18 PM
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();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 06:29 AM