Hello - On a sales order you can tick a sales order line as ‘Mark for Production’, then use the ‘Create Production Orders’ action to create production orders.
What is the best way, in code, to get from SOLine to the production details, such as ‘Production Nbr’?
The production info isn’t available from the main SOLine object so I’m thinking that I need to access a graph extension.
I tried this:
var rowExt = PXCache<SOLine>.GetExtension<SOOrderEntryAMExtension>(soLine);
but this cannot be compiled due to a type conversion issue. I’m not sure that SOOrderEntryAMExtension is actually a graph at all. Does anyone know if there is a way to get the ‘Production Nbr’ from an SOLine object?
Best answer by Dmitrii Naumov
View original