Domain Separation on a New Table

Derek3
Kilo Expert

Hi,

We have a Domain Separated Instance and have created a new table in Dev and would like to know how we domain separate this new table.

I have been able to add the sys_domain field and have it populate the correct value depending on the Company selected.   However all users regardless of Domains can see all the records in the Domain.  

Is there an obvious step I am missing?

Thanks

Derek

1 ACCEPTED SOLUTION

Domain Separation Setup - ServiceNow Wiki



This wiki link explains how you should proceed with creating this "Special" kind of field.


Same thing is applied for "sys_overrides" as well.


View solution in original post

9 REPLIES 9

Derek3
Kilo Expert

Should have added we are using Fuji and all the Task tables are domain separated ok, so the Domain Separation is working.   Just not the new table.


Michael Fry1
Kilo Patron

Adding the sys_domain field to your new table should allow for domain separation. Here's a snap shot (from cmdb_ci) of what the field should look like:



aa.jpg



If you have it setup correctly, you can try clearing your cache just to see if that helps.


Deepak Ingale1
Mega Sage

As Michael had already provided the solution, I sense that you might have created a field with name u_sys_domain of type reference to "domain" table.


This will not work. Michael's solution will work.


Deepak,



That's exactly what I have done (doh!). How do I create the field as Mike kindly showed?



Thanks


Derek