Wednesday, April 10, 2024

Posting picking list through X++ Code in Dynamics 365 F&O

 

public static void generatePickList(SalesTable salesTable)

    {

        SalesFormLetter salesFormLetter = SalesFormLetter::construct(DocumentStatus::PickingList);

        TransDate transDate = DateTimeUtil::date(DateTimeUtil::utcNow());


        salesFormLetter.transDate(transDate);

        salesFormLetter.update(salesTable, transDate, SalesUpdate::All, AccountOrder::None, NoYes::No, NoYes::No);        

    }

No comments:

Post a Comment