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.
NetSuite has launched SuiteSuccess Wholesale Distribution Edition, in Japan. Please join us the webinar on February 12 that introduces NetSuite solution with demos and case studies for Wholesale Industry.
Register Now
Search order by externalId error
I am a novice,and My English is not very good.I want to search order by externalId ,but i am fail search,can you tell me How to solve it.
TransactionSearch transactionSearch = new TransactionSearch();
TransactionSearchBasic transactionSearchBasic = new TransactionSearchBasic();
RecordRef[] arryrec = new RecordRef[2];
RecordRef subsl = new RecordRef();
subsl.type = RecordType.subsidiary;
subsl.internalId = "15";
arryrec[0] = subsl;
RecordRef exid = new RecordRef();
exid.type = RecordType.salesOrder;
exid.externalId = TextBox1.Text.Trim();
exid.typeSpecified = true;
arryrec[1] = exid;
SearchMultiSelectField externalId = new SearchMultiSelectField();
externalId.@operator = SearchMultiSelectFieldOperator.noneOf;
externalId.operatorSpecified = true;
externalId.searchValue = arryrec;
transactionSearchBasic.externalId = externalId;
transactionSearch.basic = transactionSearchBasic;
SearchResult searchRes = _service.search(transactionSearch);