How to find out sys_id of the global domain

arunkumardharma
Giga Contributor

Hello Everyone,

How we can find out the sys_id of the global domain.

Thanks

Arun

1 ACCEPTED SOLUTION

The SN Nerd
Giga Sage
Giga Sage

I think you just need to do this



var isGlobal = (current.sys_domain == 'global');



ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

View solution in original post

3 REPLIES 3

The SN Nerd
Giga Sage
Giga Sage

I think you just need to do this



var isGlobal = (current.sys_domain == 'global');



ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

Thanks paul. It's working fine. But may i know the reason why global don't have any sys_id.



Thanks


Arun


Stumbled on this one... as White is the absence of color, global is the absence of domain; therefore it's not a record like TOP thus no sys_id.