netsuite Lookup Data from Related Records [1.0] Lookup Multiple Fields

30% OFF - 9th Anniversary discount on Entity Framework Extensions until December 15 with code: ZZZANNIVERSARY9


 * An example of nlapiLookupField to retrieve multiple fields from a related record

// Get the Sales Rep record ID
var repId = nlapiGetFieldValue("salesrep");

// Retrieve multiple fields from the associated Sales Rep
var repData = nlapiLookupField("employee", repId, ["email", "firstname"]);

console.log(repData.firstname + "'s email address is " +;

Got any netsuite Question?