Records not visible in database views

aditi__patil
Tera Expert

Hello Everyone,

I want to make a view of two tables namely : scan_targets and scan_results. I have combined them on basis of sys_id of the target field, where "combo.target" is the dot walk path. I am unable to view any records in the database view (although the fields are visible). Please help me troubleshoot this. Thank you!

 

aditi__patil_0-1739954748184.png

aditi__patil_1-1739954779216.png

 

 

3 ACCEPTED SOLUTIONS

Ankur Bawiskar
Tera Patron
Tera Patron

@aditi__patil 

you cannot use dot walking in database view where clause.

You can try to join these 3 tables

scan_result, scan_target and scan_combo

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

Hello Ankur, 

I tried the following and still am not able to view any records. Is there anything else I could do?

aditi__patil_0-1740035852777.pngaditi__patil_1-1740035946891.png

 

View solution in original post

Hi @aditi__patil 

Seems you are doing wrong

 

What you need to do

Aliasname1stTable_Fieldname of alias table = alisnnamen2table_sys_id

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

View solution in original post

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @aditi__patil 

 

Seems you are doing wrong in where clause, here is example for OOTB

AGLearnNGrow_0-1740009110247.png

 

Check this and do the changes in where clause.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hello, I have also tried these kind of where clause but no data is shown in the view, is there anything else I could try?

Ankur Bawiskar
Tera Patron
Tera Patron

@aditi__patil 

you cannot use dot walking in database view where clause.

You can try to join these 3 tables

scan_result, scan_target and scan_combo

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Hello Ankur, 

I tried the following and still am not able to view any records. Is there anything else I could do?

aditi__patil_0-1740035852777.pngaditi__patil_1-1740035946891.png