Hi,
When I create a record my script is not finding the address variables. When I edit it the code works fine.
I tested this by hardcoding the address variables in my script at which point it worked on create.
Example of create (not working)
if (type == 'create' || type == 'edit') { var record = nlapiGetNewRecord(); //need to lookup: city, state, zipcode var customerCity = record.getFieldValue('billcity'); var customerState = record.getFieldValue('billstate'); Example hard coded which works on create if (type == 'create' || type == 'edit') { var record = nlapiGetNewRecord(); //need to lookup: city, state, zipcode var customerCity = 'chicago'; var customerState = 'illinois';