Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
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]