Configure accounts mappings
You want to setup a list of accounts to pick from for Income and Expense accounts. This will let you specify a default Income and expense account when creating new items (for each item type).
To setup a list of accounts to pick from in NetSuite, create a new property mapping for income account and a new mapping for expense account (make sure to create additional mapping pairs for each item type you need). This will work for any NetSuite field of type account
.
Account Property Mapping Settings
Primary accessor
(unmapped)
or mapped to a Primary Source accessor if you have one
Secondary accessor
One of:
assemblyitem.incomeAccount
inventoryitem.incomeAccount
noninventoryresaleitem.incomeAccount
noninventoryresaleitem.expenseAccount
etc
Update Primary on Submit
unchecked
Update NetSuite on Submit
checked
Object Value Selector
id
List Name
account
List Value Selector *
"id": "{id}", "displayName": "{acctNumber} - {acctName}"
Rendering Type
Advanced List
List Display Selector
displayName
List Value Selector
id
List Items
see below **
Prefer NetSuite value
checked
* A list value selector is a string that selects token values (text items wrapped in curly braces) from the returned JSON object. In our example above, when specifying the list name of account
, the object returned for each list may look something like this:
** The list items will depend on the values returned in the List Values
section after saving the property mapping the first time or clicking the refresh button and will look like this:
The list values returned needs to be formatted. You can use Chat GPT with this prompt:
Once done, it will produce a Json array (see below sample) which can be pasted in the List Items
field in the Property Mapping settings.
It is desirable to prefer the values for accounts from NetSuite over that of your CAD system since CAD file may not even include this information.
Make sure to set the checkbox Prefer NetSuite value
in the property Mapping settings
Account Property Mapping Rules
Given this input, create the following rules:
A
Set Empty Cells
import rule for your Primary/CAD source with the default id of the account, for example:
A
Text not empty
rule. This will prevent errors when submitting the BOM
Last updated