Check out Oracle NetSuite upcoming events and conferences here
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.
Don't miss out on our Weekly Quiz! You only have until May 30, 2PM EST to comment your answers and earn rewards! Click here for more details.
Expand your NetSuite knowledge by joining our Ask A Guru Live sessions. RSVP on this event now.
Community Poll: What sort of content would you like to see more of?

get parent id from child search script

edited Dec 2, 2019 6:00PM in SuiteCloud / Customization 3 comments


I am searching on a custom record which is child of parent 'Customer'

var searchresults = nlapiSearchRecord('customrecord_voucher', null, filters, [customer, status, vouchid]);
  //loop through the search results
  for ( var i = 0; searchresults != null && i < searchresults.length; i++ )  
  {      // access the values this time using the name and summary type     
                 var customer = searchresults[i].getValue('custrecord_cust_customer', null, 'group');

I need to load the customer record now. Please help on how to find customer ID from the child record so that I can load it and process further.


Howdy, Stranger!

Log In

To view full details, sign in.


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


Community Whiz

Quarter 2 ((Apr-Jun 2024) )

This Week's Leaders

This Month's Leaders

All Time Leaders