Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

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

Gurpreet07
Mega Sage

I am not aware of any OOTB method but you could glideRecord dictionary and check if there collection present with name sys_domain.


sushantgupt
ServiceNow Employee

There is a property that defines it.



glide.sys.domain.partitioning


Screen Shot 2017-07-27 at 12.33.49 PM.png




Mark Helpful if it helps...


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


}


Kaka Nayeem
Tera Guru

Thanks for Response