A record map is a data structure that contains information that drives the mapping logic. The following is a definition of an Aria Account to a NetSuite Customer map.
ARIA_PLUGIN_IMP.recordmaps.customer = [ { type: 'body', filter : ARIA_PLUGIN_IMP.customerFilter,
mapList: [
{aField: 'Subsidiary', nField: 'subsidiary',
type: 'V', translator: 'subsidiary'},
{aField: 'F', nField: 'autoname', type: 'L', addOnly: false},
{aField: 'F', nField: 'isperson', type: 'L' },
{aField: 'CurrencyCd', nField: 'currency', type: 'T',
translator: 'currency'},
{aField: 'FirstName', nField: 'firstname', type: 'V',
addOnly: false},
{aField: 'LastName', nField: 'lastname', type: 'V',
addOnly: false},
{aField: 'MiddleInitial', nField: 'middlename', type: 'V' ,
addOnly: false},
{aField: 'Email', nField: 'email', type: 'V', addOnly: false},
{nField: 'custentity_aria_plan_provision_date', type: 'D'},
{aField: 'PO Number', isSup: true,
nField: 'custentity_po_num_nr', type: 'V', addOnly: false},
{aField: 'CollectionGroup',
nField: 'custentity_aria_collections_acct_grp', type: 'V',
addOnly: false,
translator: 'aria_customListTranslator',
source: 'customlist_aria_collections_acct_grp'} },
{ type: 'list', name: 'addressbook', keyList: true, keyField: 'label', keyValue: 'ARIA', mapList: [
{aField: 'ARIA', nField: 'label', type: 'L',
addOnly: false},
{aField: 'Country', nField: 'country', type: 'V',
translator: 'aria_upperCase', addOnly: false},
{aField: '', nField: 'addressee', type: 'L',
translator: 'aria_addressee', addOnly: false},
{aField: '', nField: 'attention', type: 'L',
translator: 'attention', addOnly: false},
{aField: 'Address1', nField: 'addr1', type: 'V',
addOnly: false},
{aField: 'Address2', nField: 'addr2', type: 'V',
addOnly: false },
{aField: 'Address3', nField: 'addr3', type: 'V',
addOnly: false },
{aField: 'City', nField: 'city', type: 'V',
addOnly: false },
{aField: 'State', nField: 'state', type: 'V',
addOnly: false },
{aField: 'PostalCode', nField: 'zip', type: 'V',
addOnly: false } ] } ];