How to figure out table name for creating reports?

itsadqthing
Giga Contributor

I'm trying to figure out the table name for Companies,    How do i get that info?     I'm new to creating reports, but it seems like figuring out tables names is difficult.   Is there an easy to figure out the names?

1 ACCEPTED SOLUTION

Joining to tables means creating a "database view".

Try writing that on the left nav (you must be admin).

What tables are you trying to join?

 


If I helped you with your case, please click the Thumb Icon and mark as Correct.


View solution in original post

8 REPLIES 8

Gunjan Kiratkar
Kilo Patron
Kilo Patron

Hi @itsadqthing ,

For companies the table name is : "core_company"

In order to get table names

navigate to the Tables under system defination

GunjanKiratkar_0-1670332489765.png

This all are backend names of table:-

GunjanKiratkar_1-1670332523232.png

 


Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy

David Whaley
Mega Sage

If you filter on companies and bring up the company list the table name will be in the URL.

/now/nav/ui/classic/params/target/core_company_list.do%3Fsysparm_userpref_module%3D3bd63e2337601000deeabfc8bcbe5dc8%26sysparm_view%3Dcustomer.

 

You can pull up a company record and right click in the form header and select Configure -> table

DavidWhaley_0-1670332748834.png

(It will also be in the URL for the record, https://yourinstance.service-now.com/now/nav/ui/classic/params/target/core_company.do%3Fsys_id%3D059ad40d6f0179002381bc237d3ee4ad%26sysparm_view%3Dcustomer)

 

DavidWhaley_1-1670332859385.png

 

David

itsadqthing
Giga Contributor

Thanks for you help.   One more question,  In the Companies screen,  there are tabs at the bottom.  How do i figure out which table to pull that info from.  I would like to have the companies report with the internal key contacts for each one.  

Hi @itsadqthing ,

If you open company and scroll down upto related list then just right click on that filter and click on open in new window.

GunjanKiratkar_0-1670333734839.png

You will get your table name in URL:

GunjanKiratkar_1-1670333781626.png

URL :-

https://dev73913.service-now.com/now/nav/ui/classic/params/target/cmdb_model_list.do%3Fsysparm_query...

 

Table Name :-cmdb_model

 


Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy