Where does the API namespace value come from?

mcconnellsj
Kilo Sage

Hi

We have just started creating a scripted REST service for an integration.

We are creating the service in the Global application.

On the initial form, the "API namespace" is automatically populated and greyed out.  The value in there is something like "abcuk", that is, it isn't a number - which I have seen in the examples and tutorials.

The actual value there looks similar to the previous name of our company, and, we would like it to reflect the new name.

Is it possible to rename the API namespace?

How did it come to have this name in the first place?

Thanks in advance.

1 ACCEPTED SOLUTION

They (Hi support) should also be able to tell you if there's any implications of making this change. Just make sure to clearly outline that when you make the request.

All the best sir!

View solution in original post

10 REPLIES 10

bernyalvarado
Mega Sage

Hi, I believe that the prefix is stored in the property: glide.appcreator.company.code

You can reach the properties of you instance by typing sys_properties.list in your navigation window and then hitting enter.

Thanks,

Berny

bernyalvarado
Mega Sage

You may also want to check if it's the company name:

https://docs.servicenow.com/bundle/london-application-development/page/integrate/custom-web-services/reference/r_CustomWebServiceURIs.html

On which case try changing the company name. For that go to the system properties and field by all property names that contains company.

Thanks,

Berny

Harsh Vardhan
Giga Patron

API namespace is a read-only value. For web services in the global scope, the name space is the value of the property glide.appcreator.company.code. For web services in a scoped application, the name space is the scope name, such as x_company_appname.

 

kindly refer the doc link below.

 

https://developer.servicenow.com/app.do#!/document/content/app_store_doc_scoped_script_geneva_c_APIN...

 

https://old.wiki/index.php/Scripting_in_Scoped_Applications

mcconnellsj
Kilo Sage

Hi guys thanks so much.

The value is indeed coming from glide.appcreator.company.code.

However I get two messages both saying

"This item is read-only based on its protection policy"

Even if I get around this, is it wise to change this value?

There is also:

glide.appcreator.company.friendly_name

which has the original full name, lets say it is "Acme Group UK".  It seems to be editable but not sure what its purpose is - do you know?

The company.code value is "acguk" - so i guess it defaulted to a initials from the friendly name.

Any ideas of the impact of changing one or both?