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.
Sales Order Confirmation to NetSuite
Hi,
We used the following code to get the Sales Order details based on TranID from NetSuite using webservices.
TransactionSearch tranSearch = new TransactionSearch();
TransactionSearchBasic tranSearchBasic = new TransactionSearchBasic();
SearchStringField entityId = new SearchStringField();
entityId = new SearchStringField();
entityId.@operator = SearchStringFieldOperator.contains;
entityId.operatorSpecified = true;
entityId.searchValue = <value>;
tranSearchBasic.tranId = entityId;
tranSearch.basic = tranSearchBasic;
SearchResult response = cnw.search( tranSearch );
SalesOrder salesOrderHeader = (SalesOrder) response.recordList[0];
RecordRef recordRef = new RecordRef();
recordRef.internalId = salesOrderHeader.internalId;
recordRef.type = RecordType.salesOrder;
recordRef.typeSpecified = true;
ReadResponse responseItemList = cnw.get( recordRef );
SalesOrder salesOrderItemList = (SalesOrder) responseItemList.record;
We have two queries on this. Appreciate if any one can help us resolve this.