10 December 2018

How to get or create dimension Id in Inventory Dimension in AX 2012 / D365 / AX7

How to create inventDimId using Invent Dimension values

InventDim inventDim,inventDimLoc;
InventJournalTrans inventJournalTrans;

inventDim.InventLocationId = this.Warehouse;
inventDim.InventSiteId = InventLocation::find(this.Warehouse).InventSiteId;
inventJournalTrans.inventDimId = InventDim::findOrCreate(inventDim).inventDimId;

No comments:

Post a Comment

Give me the commetns and solutions

Customer inbound custom service in D365 F&O with X++

  [DataContractAttribute] class GOD_CustomerCreateContract {     str                 accountNum;     // Optional; if blank, a number sequenc...