The following job helps you find the related field of a table, in the e,g it tries to find the related field of (InventTrans, InventTransId) for the sales Line table static void findRelatedFieldId(Args _args) { Sy sDictTable dictTable = new SysDictTable(tablenum(Inven... int i,j; SysDictRelation dictRelation; TableId externId = tablenum(SalesLine); ......