ServiceNow API namespace - A clarification

Anish Reghu
Kilo Sage
Kilo Sage

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.

2 REPLIES 2

Tony Chatfield1
Kilo Patron

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

Anish Reghu
Kilo Sage
Kilo Sage

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.