How to get table name when looking at list of records?

Justin1
Kilo Expert

Looking to get table name at the current list with a UI Action List Button.

Is there an OOB method to retrieve a table name of the current list you're looking at?

1 ACCEPTED SOLUTION

Sagar Pagar
Tera Patron

Hi Justin,

 

Try this,

g_list.getTableName();  OR  current.getTableName();

 

Regards,

Sagar Pagar

The world works with ServiceNow

View solution in original post

10 REPLIES 10

rajneeshbaranwa
Giga Guru

use current.getTableName() or current.sysclassname to get the table name

Hi rajneesh,

Is there a way to do this in client script rather than using the current object in server side script?

You can use g_form.getTableName() in client script as well.

madhuri15
Tera Contributor

Hi Justin,

You can find the table name of any list of records by clicking on column header hamburger icon and then Click Configure > Table. You will be able to find the table name with all of its details.

Regards,

Madhuri