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 :
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

  • 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 131 Super User 2026 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 120 Super User 2026 Season 2

#3
Aayush Tiwari Profile Picture

Aayush Tiwari 54

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans