26 November 2013

How to get records by using tableId

static void TableRecByRecID(Args _args)
{
Common common;
DictTable dictTable;
#define.tableNo(77)// 77 is CustTable id
;
dictTable = new DictTable(#tableNo);
common = dictTable.makeRecord();
select common;
info(strfmt("%1",common.RecId));
}

No comments:

Post a Comment

Give me the commetns and solutions

Merge Dimensions (MainAccountId and LedgerDimensions) defaultDimension in D365 F&O and X++

 public DimensionDynamicAccount getLedgerDimension(container _conData, TransDate _transDate = today()) {     int                            ...