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 :
Supply chain | Supply Chain Management, Commerce
Suggested Answer

ITM goods in transit order post and receive by code in D365 F&O

(0) ShareShare
ReportReport
Posted on by

Hello AX Experts!

I have some knowledge in D365 F&O development, but got a requirement where I need to post and receive voyages (ITM goods) by code and I am having trouble joining the pieces.

I found out that I can post a voyage using the post process of a purchase order but I am stuck in the receive part.

I already checked ITMGoodsInTransitOrderFormLetter class and some other related such as ITMGoodsInTransitOrderEditLines and ITMGoodsInTransitOrderFormLetter_Receive but still I don't know how I can work with them to get what I am looking for.

Does anybody had to do something similar? Anyone that can share a job with an example will be truly appreciated.

Thanks in advance to all for your help.

2677.pastedimage1653364003907v1.png

I have the same question (0)
  • Gdarmon Outlook Profile Picture
    5 on at
    Hi,
     
    Did you succeed doing it?
     
    br,
     
    Gill
     
     
  • Suggested answer
    abhishek.srivastava.129 Profile Picture
    139 on at
    There is an OOB class that you can use to receive the Goods-in-transit orders,
     
    ITMGoodsInTransitOrder shipGITOrder;
    
    select firstonly shipGITOrder
        where shipGITOrder.InventTransIdRef == <Add reference lot Id, e.g. purchline.InventTransId>;
    
    ITMGoodsInTransitUpdateReceived updateReceived = ITMGoodsInTransitUpdateReceived::newGITOrder(shipGITOrder, 
                                                                                2, // Quantity to receive
                                                                                today()); // Transaction date
    updateReceived.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 > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 299 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 183 Super User 2025 Season 2

#3
André Arnaud de Calavon Profile Picture

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

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans