Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Custom fields not returned in search
Here is a curious case:
We set up an API search on a custom field with the following code:
------------------------------
CustomerSearch asi = new CustomerSearch(); CustomerSearchBasic asb = new CustomerSearchBasic(); asb.isInactive = new SearchBooleanField(); asb.isInactive.searchValue = false; asb.isInactive.searchValueSpecified = true; SearchLongCustomField ssf = new SearchLongCustomField(); ssf.@operator = SearchLongFieldOperator.equalTo; ssf.searchValue = 746; ssf.operatorSpecified = true; ssf.internalId = "custentityvsiteid"; ssf.searchValueSpecified = true;
------------------------------
Since we set searchValue EQUAL TO 746, we only expect 1 record. Typically we set it to > 0 so we get an entire customer list. However, because of the strange thing happening, we set it to 746 in our example.
Now.. here is the SOAP request and response from the above search:
0