ServiceNow API namespace - A clarification

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2019 11:40 PM
All ServiceNow namespaces in scoped applications follow the common format: “sn_<module_name>”. To use the APIs, a fully qualified object name including its namespace is required.
This is a picking from the ServiceNow document. Can somebody explain me that what is exactly meant by a fully qualified object name?
And how does the below example highlight that?
var restMessage = new sn_ws.RESTMessageV2();
Is 'restMessage' qualified as a fully qualified object name because it is not abbreviated? I mean it does not read rstMsg and instead reads as "restMessage"
Would be great if someone could clarify this. Highly appreciated. In the midst of learning the Web Services Integration and this a doubt, would like to clarify and proceed further.
- Labels:
-
Scoped App Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2019 12:23 AM
Hi,
https://en.wikipedia.org/wiki/Fully_qualified_name
Someone clever should be a long with a proper explanation shortly, but I think what it really means is you need to ensure you use the full name for any API/function you wish to invoke.
IE
var myNewThing = sn_ws.RESTMessageV2(); // gives you the API/Script you want to utilize
myNewThing.getEndpoint(); // gives you the function you wish to invoke from within sn_ws.RESTMessageV2().

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2019 04:38 AM
What I was exactly looking for is: like the example mentioned in the Wiki -
server_name.[database_name].[schema_name].object_name
for MS SQL
Likely what would be the components for a ServiceNow Fully Qualified object name - I understand one component is namespace.