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
Post a Comment