web
You’re offline. This is a read only version of the page.
close
Skip to main content
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

(0) ShareShare
ReportReport
Posted on by 96
 

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 718 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
CU05031448-0 Profile Picture

CU05031448-0 604

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans