Bojensen Blogs

Tag: MorphX

Using InventDim::newDimId in Axapta Programming

InventDim myInventDim; ; myInventDim.clear(); //You have to put in existing dimensions and values for them below myInventDim.InventLocationId = "Main"; myInventDim.InventColorId = "Blue"; //So far the RecId of the myInventDim record buffer is 0 myInventDim = InventDim::findOrCreate(myInventDim); //Now the RecId is not 0, and the InventDimId is a new or an existing InventDimId info(myInventDim.InventDimId); Using InventDim::newDimId…