Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
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. Register now
Searching For Custom Records
I am trying to search for a Custom Record. If I look on the Netsuite Web GUI, under Setup > Customization > Record Types, and click "Subscription" (this is what I'm searching for), I can see it. Look below for picture.
I search for the record using the following code :
public void searchCustomRecord()
{
CustomRecordSearch search = new CustomRecordSearch();
CustomRecordSearchBasic basic = new CustomRecordSearchBasic();
/*
basic.name = new SearchStringField();
basic.name.@operator = SearchStringFieldOperator.contains;
basic.name.operatorSpecified = true;
basic.name.searchValue = "Subscription";
*/
basic.internalId = new SearchMultiSelectField();
basic.internalId.@operator = SearchMultiSelectFieldOperator.anyOf;
basic.internalId.operatorSpecified = true;
basic.internalId.searchValue = new RecordRef[3];
basic.internalId.searchValue[0] = new RecordRef();