Discussions
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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.