what is recordinsertlist ini D365

 RecordInsertList class to copy a bill of materials (BOM) from one BOM to another.


Ex:


void copyBOM(BOMId _FromBOM, BOMId _ToBOM) 

    RecordInsertList BOMList;  // This is recordinsertlist

    BOM BOM, newBOM; 

    BOMList = new RecordInsertList(tableNum(BOM)); 

    while select BOM 

    where BOM.BOMId == _FromBOM 

    { 

        newBOM.data(BOM); 

        newBOM.BOMId = _ToBOM; 

        BOMList.add(newBOM); 

    } 

    BOMList.insertDatabase(); 

}

Comments

Popular posts from this blog

How to Create a wizard in x++ d365

how to post trade agreement journals automatically using x++ code

X++ code to CREATE AND POST A TRADE AGREEMENT IN MICROSOFT DYNAMICS 365 in D365 F & O