Hello,
I am trying to delete an AxdEntity_SalesLine using the record id as below:
AxdEntity_SalesLine[] soSalesLine = salesOrder.SalesTable[0].SalesLine;
int index = 0;
foreach (AxdEntity_SalesLine line in soSalesLine) {
if (line.recid == myId) {
line.action = AxdEnum_AxdEntityAction.delete;
salesOrder.SalesTable[0].SalesLine = new AxdEntity_SalesLine[] { soSalesLine[index] };
break;
}
proxy.update(context, readRespKeys, salesOrder);
The code is compiling correctly, however nothing changes in the AX Application.
Please adviseā¦