Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

How to join tables for reporting in HRSD?

DeniseLeighton
Tera Contributor

Hello, Can you direct me to a knowledge article on joining of two tables for reporting in HRSD. 

[task_sla]  [sn_hr_core_case]

Currently on Yokahama. 

Thank you

2 ACCEPTED SOLUTIONS

Tanushree Maiti
Kilo Patron

Hi @DeniseLeighton 

 

Create a Database View to join table [task_sla]  [sn_hr_core_case] . then report from this .

  1. Navigate to System Definition > Database Views.
  2. Click New.
  3. Name: hr_case_task_sla  //name it as you want
  4. Label: HR Case TASK SLA.
  5. Save the record.
  6. In the View Tables related list, click New. 

 

Table                              Order            Variable prefix                  Where Clause

task_sla                        100                     sla
sn_hr_core_case        200                   hrcase                        sla_task = hrcase_sys_id

 

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

View solution in original post

Ankur Bawiskar
Tera Patron

@DeniseLeighton 

out of the box there is a database view joining task_sla and incident

Similarly do for sn_hr_core_case and task_sla

both sn_hr_core_case and incident extend task table

55.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  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

2 REPLIES 2

Tanushree Maiti
Kilo Patron

Hi @DeniseLeighton 

 

Create a Database View to join table [task_sla]  [sn_hr_core_case] . then report from this .

  1. Navigate to System Definition > Database Views.
  2. Click New.
  3. Name: hr_case_task_sla  //name it as you want
  4. Label: HR Case TASK SLA.
  5. Save the record.
  6. In the View Tables related list, click New. 

 

Table                              Order            Variable prefix                  Where Clause

task_sla                        100                     sla
sn_hr_core_case        200                   hrcase                        sla_task = hrcase_sys_id

 

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

Ankur Bawiskar
Tera Patron

@DeniseLeighton 

out of the box there is a database view joining task_sla and incident

Similarly do for sn_hr_core_case and task_sla

both sn_hr_core_case and incident extend task table

55.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  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader