Skip to main content

Notifications

Announcements

No record found.

Supply Chain Management forum
Unanswered

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

Posted on by Microsoft Employee

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

  • Suggested answer
    ITM goods in transit order post and receive by code in D365 F&O
    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();
     
  • Gdarmon Outlook Profile Picture
    Gdarmon Outlook 5 on at
    ITM goods in transit order post and receive by code in D365 F&O
    Hi,
     
    Did you succeed doing it?
     
    br,
     
    Gill
     
     

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,277 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,135 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans