How to use a normal table as a temporary table in Microsoft Dynamics 365 for Finance and Operations through X++

How to use a normal table as a temporary table in
Microsoft Dynamics 365 for Finance and Operations 
through X++





        CustTable custTable;

        custTable.setTmp();
        custTable.AccountNum  = 'CUST-0001';
        custTable.Currency    = 'USD';
        custTable.Party = 1;
        custTable.doInsert();

        custTable.clear();
        custTable.AccountNum  = 'CUST-0002';
        custTable.Currency    = 'JOD';
        custTable.Party = 2;

        custTable.doInsert();

Comments

Popular posts from this blog

How to loop through enum in dynamics ax 2012 using x++

How to read from csv file in Dynamics AX 2012 Through X++

How to Create Transfer Journal in Dynamics AX 2012 Through X++