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!
Update your Profile with your Support type to get your Support Type badge.
Uncover the power of data with the Analytics Hub —your ultimate guide to mastering NetSuite Saved Searches and Reports. Simplify the complex and unlock your organization's true potential. Dive into the Analytics Hub now and soar to new heights!
To help you get the most out of your 2025.2 Release Preview account, review the topics outlined in the 2025.2 Release Preview Guide.
Nominate Your Peers for NetSuite Support Community's Choice of the Quarter! Submit your nomination today.
Intelligent Payment Automation version 1.0.3 is now available in the SuiteApp Marketplace. The SuiteApp, powered by BILL, lets you automate payments, manage vendor details, and bank account information within NetSuite. Learn more

Suitescript 1.0 nlobjSearchFilter issue on field containing object

My suitescript 1.0 script is using a search filter to return a transaction recordset. I'm trying to search on the 'createdfrom' field for the value 'Sales Order #ORD165365', but the filter has no effect (I think) because this field is actually an object. If I view the output from my RESTlet, I see the following structure:

[createdfrom] => stdClass Object
(
[name] => Sales Order #ORD165365
[internalid] => 9125879
)

Using the above, I would need to search createdfrom[name] but I'm not sure if this possible. Any ideas? Here is my code:

function getRESTlet(dataIn) {

var data = {};
var filters = new Array();

var order = dataIn[0]['order'];  
var shipping_postcode = dataIn[0]['shipping_postcode'];
var c = 0;

filters[0] = new nlobjSearchFilter('createdfrom', null, 'anyof', 'Sales Order #ORD165365');

var columns = new Array();
columns[0] = new nlobjSearchColumn('custbody_nbs214_email');
columns[1] = new nlobjSearchColumn('internalid');  
columns[2] = new nlobjSearchColumn('createdfrom');  
  
var savedSearch = nlapiCreateSearch('transaction', filters, columns);

var resultset = savedSearch.runSearch();
var returnSearchResults = [];
var searchid = 0;
do {
    var resultslice = resultset.getResults(searchid, searchid + 1000);
    for ( var rs in resultslice) {          
      returnSearchResults.push(resultslice[rs]);
 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!

Leaderboard

Community Whiz

Quarter 4 (Oct-Dec 2025)

This Week's Leaders

This Month's Leaders

All Time Leaders