Database view to reference field

ClaireB
Mega Contributor

Hi, 

I'm trying to build a database view from one table (technical service table) to a reference field (PII data) on that table so I can see a many to many list view. 

This is the related list at the bottom of the first table
find_real_file.png

So I want to have a list view of each technical service with each corresponding PII Data name. 

Can anyone help with going about this. 

find_real_file.png

This is what I have so far. But I don't know what the where clause should be? This is my first time doing a database view. I can't find a common field on each of the tables to link in the where clause. Maybe I am doing something wrong. 

Thanks.

1 ACCEPTED SOLUTION

ClaireB
Mega Contributor

I've just realised I might have been looking in the wrong place, and instead created a custom m2m table for what I needed. 

Thanks Ankur anyway for your help!

View solution in original post

11 REPLIES 11

Hi,

Can you explain this

1) which field on PII Data table is reference to Technical Service?

OR

2) which field on Technical service table is reference to PII data?

Regards
Ankur

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

So on the Technical Service table, the PII data records show in a related list at the bottom of the record:
find_real_file.png

And on a PII Data record, there is a list of the related Technical services at the bottom of that record:

find_real_file.png

Not sure if this answers what you ask

ClaireB
Mega Contributor

I've just realised I might have been looking in the wrong place, and instead created a custom m2m table for what I needed. 

Thanks Ankur anyway for your help!

@ClaireB 

Glad to know.

If my response helped please mark it correct and helpful and close the question.

Regards
Ankur

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

@ClaireB 

Did you accidentally marked your own response as correct.

If my response helped please mark it correct and helpful and close the question.

Regards
Ankur

 

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