SBX - Search With Button

SBX - Forum Post Title

Post packing slip for shipment using x++

Dynamics 365 for Finance and Operations Forum

Anurag Nagarkoti asked a question on 16 Sep 2018 4:21 AM
My Badges

Question Status

Suggested Answer

Hi all,

I am trying to post packing slip using x++ for a shipment. The shipment contains multiple order.

I referenced the code from the internet. But it is not working. May be some of the methods are depreciated in D365.

Has anybody posted the packing slip through code in D365? Please help.

My code: -

        SalesFormLetter salesFormLetter;
        Set wmsShipmentSet = new Set(Types::String);
        ;
        wmsShipmentSet.add(shipmentTable.ShipmentId);

        salesFormLetter = SalesFormLetter_PackingSlip::newFromWMSShipment(wmsShipmentSet);
        salesformletter.parmshipmentid(shipmenttable.shipmentid);
        salesformletter.parmlineidset(wmsshipmentset.pack());
        salesFormLetter.update(shipmentTable, systemDateGet(), SalesUpdate::All,AccountOrder::None,false,false);

With regards,

Anurag Nagarkoti

Reply
Rustem Galiamov responded on 16 Sep 2018 4:56 PM
Suggested Answer

Hi Anurag Nagarkoti!

Take a look at this discussion. It's for AX2012, but maybe it will be helpful.

https://community.dynamics.com/ax/f/33/t/81409

Reply
Rustem Galiamov responded on 16 Sep 2018 4:56 PM
Suggested Answer

Hi Anurag Nagarkoti!

Take a look at this discussion. It's for AX2012, but maybe it will be helpful.

https://community.dynamics.com/ax/f/33/t/81409

Reply

SBX - Two Col Forum

SBX - Migrated JS