Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46681

What is the Method/Code that puts ItemGroup in Sales Order Line

$
0
0

Im testing some code to use for inserting Sales Order Lines

but my code does not automatically put the Item Group (It shows in manual adding)

can i know what code/method used to put the Item Group Financial Dimension of the Sales Order Line?

my code for testing (1 item only):

{

SalesLine.clear();
SalesLine.SalesId = SalesTable.SalesId;
SalesLine.ItemId = '100407';
SalesLine.SalesQty = 5;

SalesLine.itemIdChanged();


SalesLine.InventDimId = InventDim::findOrCreate(inventDim).inventDimId;
salesline.initFromSalesTable(salestable);
SalesLine.createLine();

SalesLine_ds.refresh();
SalesLine_ds.executeQuery();

}


what should i add to get the ItemGroup?

help. thanks.


Viewing all articles
Browse latest Browse all 46681

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>