The Zurich release has arrived! Interested in new features and functionalities? Click here for more

What is the use of DEFAULT domain in a Domain separated instance?

Suggy
Giga Sage

What is the use of DEFAULT domain in a Domain separated instance?

Doc says "The default domain is the domain to which the system automatically assigns task and user records that are not already assigned to a domain."

 

To test this, I ran below in script background from Global domain:

var gr=new GlideRecord('incident'); 
gr.initialize();
gr.insert();

 

I see that the record is getting created in GLOBAL domain, instead of creating in DEFAULT domain.

Am I missing anything?

 

If my understanding is wrong, tell me in which scenario a record gets created in DEFAULT domain (I need to test that).

Thanks!!!

 

5 REPLIES 5

Tony Chatfield1
Kilo Patron

Hi, this sounds a bit like vague word use in documentation.
If a domain separated record does not have a domain populated, either directly or via a company reference on the record, then the default 'global' domain is set.

 

'global' is the term used to identify a lack of domain, so any record you see in the 'global' domain is actually a record without a domain and global is appended to make it easier for users to understand the domain structure
IE 'global' domain records can be seen everywhere (globally) as there can be no domain filtering where a domain does not exist.

 

Hi @Tony Chatfield1 , Yes in all my testing (without populating the domain/company), the record sits in GLOBAL doamin. Then in which case DEFAULT domain will come into picture? If you are aware about this domain, do let me know. 

Thank you 🙂

I would expect that default == global

Mehta
Kilo Sage
Kilo Sage

Hi, 

 

By Default domain, the ServiceNow means global domain on Documentation. If you create a record and you do not have a domain associated with you on your sys_user record then the records will get created in default domain i.e global domain in servicenow.