This article explains:
How to picking list through a job using X++ in Dynamics AX.
Applied on:
Dynamics AX 2009 SP1
Create a job as mentioned below:
static void PickingListByCode(Args _args)
{
InventTransferParmTable inventTransferParmTable;
InventTransferMultiPick inventTransferMultiPick = InventTransferMultiPick::construct();
;
InventTransferParmTable.TransferId = "transferid" //Provide transferId
inventTransferParmTable.EditLines = true;
inventTransferParmTable.AutoReceiveQty = true;
inventTransferParmTable.UpdateType = InventTransferUpdateType::PickingList;
inventTransferParmTable.PickUpdateQty =InventTransferPickUpdateQty::All ;
inventTransferMultiPick.runUpdate(InventTransferParmTable);
}
NOTE: Use at your own risk. There is no warranty on this article.
This comment has been removed by the author.
ReplyDeleteis there also a possibility to post the list with a query and not with the Transferid. For example like the method "salesFormLetter.queryChooseLines(objQryRun)"?
ReplyDeleteThank you very much