Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
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]