Hi,
I’m trying to create a new memo but I’m not sure how to pull the right MemoTableset. The below code creates a new line on the SQL table. Everything in the sql table populates correctly except for the column “RelatedToSysRowID” which is the column that relates the memo to an order in OrderHed. Any ideas on how to pull the right MemoTableset?
This is my code below:
foreach (DataRow row in ds.Tables["Results"].Rows) {
Ice.Contracts.MemoSvcContract vh_Memo = null;
vh_Memo = Ice.Assemblies.ServiceRenderer.GetService<Ice.Contracts.MemoSvcContract>(Db);
string orderNum = row["OrderRel_OrderNum"].ToString();
memoTS = new MemoTableset();
vh_Memo.GetNewMemo(ref memoTS, "Erp", "OrderHed", "107566", "", "", DateTime.Now);
//row["MemoUserID"] = "TEST";
vh_Memo.Update(ref memoTS);
}