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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

How to ship a transfer order in Code

(0) ShareShare
ReportReport
Posted on by 235

Hi hope someone can help

I have a custom dev where a new table/form is created. (Lets call it CustomA)  This table contains the TransferIds, and a status from the Table InventTransferTable, which are generated through standard process

They now would like to be able to Ship the entire transfer order from this table when the status on this new table is changed.

So I would like to Ship a transfer order in code.  But I want to ensure that all the standard processes occurred.

Does anyone have example of code to ship the entire transfer order if I have the TransferId.

Kind regards

I have the same question (0)
  • Alex VN Profile Picture
    1,994 on at

    Hi,

    I think you might check these articles:

    allaboutdynamic.com/.../

    www.dynamicsuser.net/.../54334

    Hope this helps.

  • Sophia.r Profile Picture
    235 on at

    Thank you

    I was able to get my code working.  For future use D365/AX7:Post Transfer Order Shipment using X++ Codes - All About Microsoft Dynamics (allaboutdynamic.com)

    InventTransferParmTable             inventTransferParmTable;
    InventTransferUpdShip                  inventTransferUpdShip;

    inventTransferParmTable.clear();
    inventTransferParmTable.initParmDefault();
    inventTransferParmTable.ParmId = RunBaseMultiParm::getSysParmId();
    inventTransferParmTable.TransferId = ‘transfer order number’;
    inventTransferParmTable.UpdateType = InventTransferUpdateType::Shipment;
    inventTransferParmTable.PrintTransferReceipt = NoYes::No;
    inventTransferParmTable.ShipUpdateQty = InventTransferShipUpdateQty::All;
    inventTransferParmTable.EditLines = NoYes::Yes;
    inventTransferParmTable.ExplodeLines = NoYes::No;
    inventTransferParmTable.TransDate = today(); //shipment date
    inventTransferParmTable.InventDimFixedReceiveList = 0;
    inventTransferUpdShip = InventTransferUpdShip::newParmBuffer(inventTransferParmTable);
    inventTransferUpdShip.run();

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 559 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 464 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans