Check Particular Instance is domain separated or not?

Kaka Nayeem
Tera Guru

Hi All,

     

      I am just trying to check if the particular instance is domain separated or not?   via coding

      Is it possible to develop application based on below algorithm,

   

      If (Instance == Domain_Seperated) then

              Perform Statement1;

    else

            Perform Statement2;

  If possible provide some example to achieve above requirement.

Thanks,

Kaka Nayeem

1 ACCEPTED SOLUTION

saprem_d
Giga Guru

Hi,



Please below server side script to verify



if(gs.getProperty("glide.sys.domain.partitioning") == true) {


//Domain seperation is enabled


}



else {


//No


}


View solution in original post

5 REPLIES 5

SaschaWildgrube
ServiceNow Employee
ServiceNow Employee

The DevTools scoped app contains useful tools and code for developers.

The IsTableDomainSeparated() function checks if domain separation is active AND supported for the given table.

Check it out here:

https://github.com/saschawildgrube/servicenow-devtools/blob/master/update/sys_script_include_57f9345...