Chris, is that still relevant if you’re using the business objects to add the record?
var poSvc = Ice.Assemblies.ServiceRenderer.GetService<Erp.Contracts.POSvcContract>(Db);
Erp.Tablesets.POTableset poTS = new Erp.Tablesets.POTableset();
poSvc.GetByID(poNum);
poSvc.GetNewPODetailAttch(ref poTS, poNum, poLine);
var newPORow = poTS.PODetailAttch.FirstOrDefault();
newPORow["Company"] = Session.CompanyID;
newPORow["PONum"] = poNum;
newPORow["POLine"] = poLine;
newPORow["DrawingSeq"] = attachNum;
newPORow["XFileRefNum"] = lastRef;
newPORow["DrawDesc"] = fileDesc;
newPORow["FileName"] = fileName;
newPORow["DocTypeID"] = docTypeID;
newPORow["RowMod"] = "A";
poSvc.Update(ref poTS);