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 :
Finance | Project Operations, Human Resources, ...
Unanswered

Need Custom X++ Code to Enable Marking Between Sales Line and Production Order Co-Product

(2) ShareShare
ReportReport
Posted on by 108
 

Hi everyone,

I need help with the technical side (X++ customization) for a marking scenario in D365FO. 

I have: 

  • A Production Order
  • A Sales Order

The key point is:

The Sales Order line item is the co-product of the Production Order (not the main product).

Both share the same inventory dimensions (Site & Warehouse).

By standard functionality, when I open Sales Order line → Inventory → Marking, the related Production Order does not appear, so marking cannot be done. 

I am not looking for the business process explanation — I need customization guidance. 

Can someone suggest what custom X++ code or extension points are needed to:

  1. Allow fetching Production Order inventory transactions for co-products while marking from the Sales Order?
  2. Modify or extend the logic in InventTrans::findProdMarkedTrans(), InventTrans::findInventTransMarked(), or related classes?
  3. Add co-product consumption/production InventTrans records to the marking query?
  4. Any event handlers or class extensions that need to be used to include co-product prod-order references in the marking form? 

If anyone has done a similar customization or can point to the right tables/classes to extend, I would really appreciate it. 

Thanks!

Categories:
I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 617

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 461 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 298 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans