Discussions
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Join us
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.