CIs Domain Problem

pranavagarw
Tera Contributor

I am fetching the data from a Data Stream which is in global domain, and the affected CIs are creating in global domain, but in execution it is showing different domain.
test1.png

 

Where is the issue? I have checked all the steps and scripts it is not set explicitly anywhere.
Only in the dictionary entry it is set to default Global.
Please help me out.

Thank You.

2 REPLIES 2

Singha8
Tera Expert

Hi @pranavagarw ,

 

You mentioned dictionary entry is set to global, but execution happens in a different domain:

 

1.Check if any other script or data policy is modifying the domain value during execution. Enable logging and debug mode to track changes.

 

2. Domain scope change in execution context: Debug the domain value during execution using.

gs.log(gs.getUser().getDomain());

 

3.Domain separation is enabled: if domain separation is enabled in ServiceNow, the execution domain can automatically change.

 

4. If you are fetching data through a BR or SI, It might be switching the domain context.

 

If this answer helped, please mark it as helful so other can benifit too!

Thank you,

Ananya.

 

 

 

Sandeep90
ServiceNow Employee
ServiceNow Employee

@pranavagarw It is not clear what the expectations are from the question but please refer to https://www.servicenow.com/docs/bundle/yokohama-servicenow-platform/page/product/configuration-manag...  on how domain separation works in IRE,