Can I create a Scoped app without the Number in the App name X_12345_ABC just X_ABC?

Andrew Payze
Kilo Guru

Hi

Using my developer instance when I create a scoped app in Studio it adds a number x_123456_ABC,  can we create it without the 123456 part?

Tx

Andrew

1 ACCEPTED SOLUTION

niedziel1
ServiceNow Employee
ServiceNow Employee

Hi Andrew -

 

It is not possible to create a scoped app on a personal developer instance (PDI) without the number as part of the scope.  The number you are asking about is the "company code" part of the application scope.  The scope uniquely identifies your application from all other ServiceNow applications in the world.  The value (the number) comes from the glide.appcreator.company.code system property.  The glide.appcreator.company.code value is set by ServiceNow when an instance is assigned and is not user editable.  All personal developer instances have a unique number in the glide.appcreator.company.code property.

All instances which belong to your company have the same value in the glide.appcreator.company.code property.  This allows the your company instances to use the ServiceNow application repository to install applications developed on your company dev instances on other instances which also belong to your company.

I hope that helps.  Happy developing!

 

View solution in original post

5 REPLIES 5

Brian Lancaster
Tera Sage

I did some searching for script includes on the studio application.  They all show with a warring "This record is in the Studio application and cannot be edited.  The install application 'Studio' is private."  So unless there is some sort of system property that you can change I would say no there is no way to remove the numbering from the back-end name.

niedziel1
ServiceNow Employee
ServiceNow Employee

Hi Andrew -

 

It is not possible to create a scoped app on a personal developer instance (PDI) without the number as part of the scope.  The number you are asking about is the "company code" part of the application scope.  The scope uniquely identifies your application from all other ServiceNow applications in the world.  The value (the number) comes from the glide.appcreator.company.code system property.  The glide.appcreator.company.code value is set by ServiceNow when an instance is assigned and is not user editable.  All personal developer instances have a unique number in the glide.appcreator.company.code property.

All instances which belong to your company have the same value in the glide.appcreator.company.code property.  This allows the your company instances to use the ServiceNow application repository to install applications developed on your company dev instances on other instances which also belong to your company.

I hope that helps.  Happy developing!

 

Andrew Payze
Kilo Guru

Thank you for confirming

Andrew

niedziel1
ServiceNow Employee
ServiceNow Employee

Hi again Andrew -

If your use case is that you want the scope of an app you develop on your PDI to be the same scope as on your company instances, there is a way to make that happen.   Here are the high level steps: 

Create the application on one of your company dev instances.  This will create a scope with the company's glide.appcreator.company.code.  Link the application to a Git Repository.

On your dev instance, open Studio and click the Import From Source Control button.  Configure the import to connect to the Git Repository you saved the application to.  The imported application will have the scope from your company instance.

This may not be your use case but I thought I would put it out there for you in case it was helpful.