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:
- Allow fetching Production Order inventory transactions for co-products while marking from the Sales Order?
- Modify or extend the logic in InventTrans::findProdMarkedTrans(), InventTrans::findInventTransMarked(), or related classes?
- Add co-product consumption/production InventTrans records to the marking query?
- 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!


Report
All responses (
Answers (