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!
Change owner of searches through suitescript?
Is it possible for me to run a suitescript search on my search records?
I'd like to find all searches with a specific owner and change the owner to myself.
I tried the below, which doesn't work because I don't know the record type. Is there a different way to go about doing this?
var filters = new Array(); filters[0] = new nlobjSearchFilter( 'owner', null, 'is', ownerId); // Return Owner var columns = new Array(); columns[0] = new nlobjSearchColumn( 'id' ); columns[1] = new nlobjSearchColumn( 'name' ); columns[2] = new nlobjSearchColumn( 'owner' ); // execute the Warrenty search, passing all filters and return columns var searchresults = nlapiSearchRecord( 'search', null, filters, columns );
Tagged:
0