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.
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();