Wednesday, 18 May 2016

InventDim getting and updating data


below is sample code to update(kind of update) InventDim table and get required data. Get wmslocation from below code and assign inventDIm

inventDimLoc.InventLocationId = SalesTable.InventLocationId;
inventDimLoc.InventSiteId = SalesTable.InventSiteId;
inventDimLoc.wMSLocationId =VendTable::find(InventTable::find(salesLine.itemid).PrimaryVendorId).ReturnLocation;
inventDimLoc = InventDim::findOrCreate(inventDimLoc);
salesLine.InventDimId = inventDimLoc.inventDimId;

No comments:

Post a Comment

Excel data connector in AX7/D365

Excel data connector in AX7: Configuring and using the Excel Data Connector Add-in The Excel Data Connector add-in is built by usi...