Scoped App - Getting error when calling a REST call in scoped app
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2019 04:26 PM
There is a scheduled job which is calling a script include which inturn is calling the REST message.
Working fine when done in global scope, but I move the same code in scoped app, I am getting following error:
Cannot find function getMessage in object TypeError: Cannot find function setAuthentication in object [object RESTMessageV2]..

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2019 04:43 PM
Can you share your scheduled job script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2019 04:49 PM
var gr= new getIncident().runJob();
getIncident is the script include name in the scoped app and runJob is the method.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2019 05:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-10-2019 10:03 AM
Hmm still the same error plus another error " Cannot find function getMessage in object ReferenceError: "JSUtil" is not defined.."