Alfasith AX

Alfasith AX
اللَّهُمَّ انْفَعْنِي بِمَا عَلَّمْتَنِي، وَعَلِّمْنِي مَا يَنْفَعُنِي، وَزِدْنِي عِلْمًا

Sunday, April 13, 2014

Job to copy all the record from one table to another in Dynamic AX

Hi,

// Copy data from one table to another using job
static void CopyData(Args _args)
{
    CustTable custTable ;
    DuplicateTable duplicateTable ;
    ;
    ttsBegin;
    while select custTable
    {
        buf2Buf(custTable ,duplicateTable );  
        duplicateTable.insert();
    }
    ttsCommit;
}

Regards,

No comments:

Post a Comment

How find size of recordsortedlist in D365/AX 2012

Hi, This is the continuity of the previous article where we are now getting the size of recordsortedlist . if(recordsortedlist.len() >1) ...