Hi Sean, I think that Ishwar is on the right track. If you set the TableNo property of the codeunit to 5406, then the OnRun trigger will take that record as an argument. In that way, your AutoassignSerials(ProdOrderLine) would pass your working copy of ProdOrderLine to your codeunit as intended. Hope that helps,
↧