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.

Database view NULL where clause to show ALL records in a table

Vinicius Luz1
Tera Expert

Hi,

 

I have this setup

ViniciusLuz1_0-1726679459753.png

I want the case table to show all the records inside of it - Please note that I already have the 'left join' as true ...

How can I achieve it - If it is possible

1 ACCEPTED SOLUTION

I attempted to re-create this in my PDI.  In a scoped app table I added a column that's a reference to the case table then setup the Left join and Where clause I suggested where case_sys_id=<<my table column>>. I was only seeing the 5 records I created in the scoped app, 4 of which had the case reference column populated - which would be a left join on the custom table.  I switched the order to put case first, with the Where clause on the 200/custom table and it works as expected.

 

BradBowman_0-1726687509620.png

View solution in original post

5 REPLIES 5

I attempted to re-create this in my PDI.  In a scoped app table I added a column that's a reference to the case table then setup the Left join and Where clause I suggested where case_sys_id=<<my table column>>. I was only seeing the 5 records I created in the scoped app, 4 of which had the case reference column populated - which would be a left join on the custom table.  I switched the order to put case first, with the Where clause on the 200/custom table and it works as expected.

 

BradBowman_0-1726687509620.png