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 records are not populating

Arjun Reddy Yer
Mega Sage

required help @Vasantharajan N @Ankur Bawiskar

 

As I need to created a database view for the mentioned tables.

 

1.) interaction_related_record

2.) sn_customerservice_case_its

 

And all the fields in the " sn_customerservice_case_its" table need to be available.

Based on this I had created a database view as mentioned below

ArjunReddyYer_0-1762373189140.png

ArjunReddyYer_1-1762373767009.png

ArjunReddyYer_2-1762373901785.png

Database View Table: u_end_user_status

Only it is showing count not the records 

ArjunReddyYer_3-1762374271538.png

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Arjun Reddy Yer 

your join is wrong

I assume "sn_customerservice_case_its" is table extending "sn_customerservice_case" table

So use this

-> task field on interaction related record table holds Task Info so in this case it will hold Case info

AnkurBawiskar_0-1762398996903.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

View solution in original post

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@Arjun Reddy Yer 

your join is wrong

I assume "sn_customerservice_case_its" is table extending "sn_customerservice_case" table

So use this

-> task field on interaction related record table holds Task Info so in this case it will hold Case info

AnkurBawiskar_0-1762398996903.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Vasantharajan N
Tera Sage
Tera Sage

@Arjun Reddy Yer - As Ankur mentioned,

  1. You need to first update the "Where clause" and "Variable Prefix" for each table you included to create the DB view
  2. Add the fields from each table ("View Fields" related list) that you wanted to view in the DB view

VasantharajanN_0-1762406095520.png

 

Check you have the read access for both tables. The record not visible in the list but shows the row count refer to the article link given below, 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0997137


Thanks & Regards,
Vasanth