How to send the dynamic table name of the table selected

AMIT SHISHODIA2
Giga Guru

There are 5 variables on record producer which are depend on requested_for.
I want to pass the table name of those 5 tables dynamically in script include.
If I will select first variable,GlideRecord will work on first table.If I select Second table GlideRecord will work on second table for all 5 variables.

1 ACCEPTED SOLUTION

AMIT SHISHODIA2
Giga Guru

Got the Solution:
1.We can simply pass table name inside '' from every variable advance reference qualifier

OR 

2.We can make system property having value table name and can pass system property in advance reference qualifier.

View solution in original post

21 REPLIES 21

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Amit,

What is the data type of those 5 variables?

 

- Pradeep Sharma

Reference

Thanks for the update Amit. You can get the table name as

current.variables.PASS VARIABLE NAME HERE.sys_class_name;

 

- Pradeep Sharma

Sir,it's showing undefined