var customer_id = results.getValue('entity'); ...
# suitescript
m
var customer_id = results.getValue('entity'); var customer_email = nlapiLookupField('customer', customer_id, 'email');