Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Records are not populating in Database view only few records visible not all the records

Arjun Reddy Yer
Mega Sage

required help @Vasantharajan N  @Ankur Bawiskar 

 

As I created a database view for the mentioned tables.

 

1.) interaction_related_record

2.) sn_customerservice_case_its

 

Unable to view all the records in those 2 tables

Database View:

 

ArjunReddyYer_0-1762445149066.png

ArjunReddyYer_1-1762445203374.png

ArjunReddyYer_2-1762445381277.png

 

Records visible at present:

ArjunReddyYer_4-1762445794825.png

 

Records of interaction_related_record table:

ArjunReddyYer_5-1762446161458.png

Records of sn_customerservice_case_its Table:

ArjunReddyYer_6-1762446695021.png

 

1 ACCEPTED SOLUTION

@Arjun Reddy Yer use below  where clause in interaction related list table (incdb_document_id=itsdb_sys_id), it should work.


Please mark the answer correct/helpful accordingly.


Raghav
MVP 2023
LinkedIn

View solution in original post

10 REPLIES 10

@Arjun Reddy Yer In your database view (view tables list) , mark the left join as "true".

 

You will get the left join option in "view table" list from gear icon.


Please mark the answer correct/helpful accordingly.


Raghav
MVP 2023
LinkedIn

unable to understand can you please share a sample one

In your view tables, you have defined WHERE clause. 
You also have a left join field there, you need to mark that as true.

 


Please mark the answer correct/helpful accordingly.


Raghav
MVP 2023
LinkedIn

It's not showing even though I had selected in Personalize List Columns

ArjunReddyYer_0-1762452493161.png

ArjunReddyYer_1-1762452532529.png

 

Brian Lancaster
Kilo Patron

If not all the cases have a interaction that would not show up in the view. You could make them show up by setting left join to true. You will have to add it to the list layout of your database view were you see the where clause. You may also have to reverse the where clause meaning changing it to incdb_document_id=itsdb_sys_id.