Discussions
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Obtaining SalesOrderItemList related list of SalesOrder header
I am trying an example from the NSClient (SuiteTalk based) example app but the sale order line items list belonging to the sale order returns null, following the functions involved (I have put on red the "sensible" parts) ...
private static void ProcessSalesOrderItemList(SalesOrder so)
{ [INDENT]Client.Out.WriteLn(" Sales Order line item list:");
if (so.itemList != null)
{[/INDENT]
[INDENT=2]for (int i = 0; i < so.itemList.item.Length; i++)
{[/INDENT]
[INDENT=3]SalesOrderItem item = (SalesOrderItem)(so.itemList.item[i]);
Client.Out.WriteLn(" " + item.item.name + ", quantity: " + (int)item.quantity);[/INDENT]
[INDENT=2]}[/INDENT]
[INDENT]}
Client.Out.WriteLn(" " + "Total amount: " + so.total);[/INDENT]