Источник:
http://hariprasadp.spaces.live.com/B...B91F!210.entry
==============
//--HariPattela--Autogenerate numbersequnce with Dynamics AX code
static void NumberSeq_code(Args _args)
{
NumberSeq SalesOrderId;
;
SalesOrderId = NumberSeq::newGetNum(SalesParameters::numRefSalesId(), true);
info(SalesOrderId.num());
pause;
}
==============
Источник:
http://hariprasadp.spaces.live.com/B...B91F!210.entry