Skip to main content

Notifications

Announcements

No record found.

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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans