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.

obtaining related list names for scripting

sammarcow
Mega Expert

I am configuring a form and trying to get the names of related lists in order to utilize library g_list.     What is the easiest way to get the name of the list?

g_list.get(g_form.getTableName() + '.<listname>').setFilterAndRefresh('');

3 REPLIES 3

Inactive_Use945
Kilo Expert

pradeepksharma Any thoughts, Ideas about it?


Deepak Ingale1
Mega Sage

Hi William,



You can use



g_form.getRelatedListNames();



This gives all the related list names in   a array


Community Alums
Not applicable

Hii Deepak,I am fresher in Development can you please tell me how to fetch array data  on form.