web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / Dynamics AX Concoction / AX2012 : X++ code to update...

AX2012 : X++ code to update picking list for sales order

Rachit Profile Picture Rachit 4,015 User Group Leader
Hi Friends,

Use the following code to generate the picking list for a sales order. This will give you the same results when you do Sales Order --> Pick and Pack --> Generate picking list.


static void SalesOrder_UpdatePickingList(Args _args)
{
    SalesFormLetter_PickingList salesFormLetter;
    SalesTable      salesTable = salesTable::find('SO-101292');

    ;
    salesFormLetter = SalesFormLetter_PickingList::newPickingList();
    salesFormLetter.transDate(systemDateGet());
    salesFormLetter.update(salesTable,
                            systemdateget(),
                            SalesUpdate::All,
                            AccountOrder::None,
                            NoYes::No,
                            NoYes::No);
}



This was originally posted here.

Comments

*This post is locked for comments