REST API URLs' subdomain: InstanceID: Developer and Paid accounts

jeff00seattle
Kilo Guru

With ServiceNow REST API, its URLs' subdomain contains instanceId:

 

https://{instanceId}.service-now.com/api/now/table/{tableName} 

 

Since I only have a developer instance account, 

 

GET https://dev105877.service-now.com/api/now/table/{tableName}

 

Does supported (paid) accounts also have instanceId required for REST API URLs' subdomain

1 ACCEPTED SOLUTION

Tony Chatfield1
Kilo Patron

Hi, yes every instance is named for and accessed via it's 'sub-domain', and this is the unique identifier for the instance.

Both the production and sub-production instance(s) for a solution\enagement normally share the same base name, with sub-production being suffixed to identify them eg
myInstance, myInstancedev, myInstancetest

The instance name be accessed from a script via the system property 'instance_name'

gs.info(gs.getProperty('instance_name'));

or you can access the formatted url via

gs.info(gs.getProperty('glide.servlet.uri'));

 

View solution in original post

1 REPLY 1

Tony Chatfield1
Kilo Patron

Hi, yes every instance is named for and accessed via it's 'sub-domain', and this is the unique identifier for the instance.

Both the production and sub-production instance(s) for a solution\enagement normally share the same base name, with sub-production being suffixed to identify them eg
myInstance, myInstancedev, myInstancetest

The instance name be accessed from a script via the system property 'instance_name'

gs.info(gs.getProperty('instance_name'));

or you can access the formatted url via

gs.info(gs.getProperty('glide.servlet.uri'));