Database View, dot.walked field, without including the field

brian_
Tera Guru

I am building a database view to give a group restricted access to table data. I'm only including fields to which they are allowed to see (sensitive information).

One of the data points they require comes from a dot.walked field, or a join. I can add that separate table to the view and set up the where clause, but the view fails to work unless I include the initial field from which it is dot.walked. The problem is they don't get permission to see that field.

 

For instance, I have a reference field called Account, that is referring to my Customer_Accounts table.
In Customer_Accounts there is a field called Currency.
I want to include the Account.Currency value without including Account.

 

Is this possible at all?


Not including the Account field results in this error. Including it causes the view to work properly.

find_real_file.png

1 ACCEPTED SOLUTION

Brian Lancaster
Tera Sage

No I don't think there is a way to include a field that is dot walked without including the reference field.  I'm wondering though if you give these users a role that removes there permission to read the particular fields would make more sense rather then trying to create a database view.

View solution in original post

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@brian. 

Hope you are doing good.

Let me know if I have answered your question.

If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader