var chg= new GlideRecord('change_request');
var c = chg.getRelatedTables().values().toArray();
var numElements = c.length;
for( var i = 0; i < numElements; ++i){
gs.print(i+": "+c[i]);
}
Output:
Get a list of names and display values of tables that are referred to by the current record.