- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday - last edited an hour ago
- in Global scope, or
- in a custom scoped application ?
Thanks in advance! Cheers!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hi @danielherre
To use the DiscoveryAPI class within a Scripted REST API, you should work in the Global scope
Note: If needed, you can add a cross-scope privilege in ServiceNow when a scoped application needs to read, write, create, delete, or execute scripts on a resource
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hi @danielherre
To use the DiscoveryAPI class within a Scripted REST API, you should work in the Global scope
Note: If needed, you can add a cross-scope privilege in ServiceNow when a scoped application needs to read, write, create, delete, or execute scripts on a resource
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Thanks for the reply @Tanushree Maiti. That information about the API itself I have already checked it, my specific question si how to identify if it need to global or not. Only information I see is DiscoveryAPI mentions "This class runs is in the sn_discovery namespace." <- how can I select the appropiate scope, is there any guidance from this statement?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
59m ago
Hi @danielherre
We have a catalog in client instance ( in global scope) which is having a process flow that initiate discovery (in Workflow). It is running fine and using Discovery api from sn_discovery namespace.
sn_discovery namespace is a package with discovery api provided by Servicenow.
In global scope, if you open script include and search script by "sn_discovery" , lots of script include you will find.
e.g from a OOB script include:
