Discussions
Error: Sublist addressbook field Addressbookaddress is not a subrecord field
I have a before submit user event script that transfers address subrecords on a customer record to a contact record. The script executes perfectly on my end when logged in as any role. The script throws an error on line 58 when anyone not logged in as an admin tries to execute. The error is "Sublist addressbook field addressbookaddress is not a subrecord field Stack Trace: transfer(transferAddresses.jsfunction transfer(type, name){
if (nlapiGetFieldValue('custentity90') == 'T'){
try{
var com = nlapiLoadRecord('customer', nlapiGetFieldValue('company'));
}
catch(e){}
try{
if (com == null){
com = nlapiLoadRecord('othername', nlapiGetFieldValue('company'));
}
}
catch(e){}
try{
if (com == null){