Configure subsidiary mapping
When using Advanced BOMs subsidiary selection becomes available for manufacturing routes. To setup subsidiary selections, add a new Property Mapping for each item type that you need.
Subsidiary Property Mapping Settings
Primary accessor
(Unmapped)
or mapped to a Primary Source accessor if you have one
Secondary accessor
assemblyitem.subsidiary inventoryitem.subsidiary etc...
Update Primary on Submit
unchecked
Update NetSuite on Submit
checked
Object Value Selector
refName
List Name
subsidiary
List Value Selector
"id" : "{id}", "displayName" : "{name}"
Rendering Type
Advanced Multi Select List
List Display Selector
displayName
List Value Selector
id
List Items
**see below
Prefer NetSuite value
checked
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.
The list values returned needs to be formatted. You can use Chat GPT with this prompt:
Below is a sample that can be generated from this list:
Once done, it will produce a Json array which can be pasted in the List Items
field in the Property Mapping settings.
Subsidiary Property Mapping Rules
Given this input, create the following rules:
A
Select From Json
import rule for NetSuite (check the checkbox forProcess for NetSuite
) with the following text:
A
Text Manipulation
import rule for NetSuite (check the checkbox forProcess for NetSuite
) with the following text:
Since the rendering type of this property mapping is a multi-select type, you need to ensure that values are properly manipulated (a multi-select rendering type deals with array type values). One example is to convert empty values from the Primary/CAD source to an empty array; create a
Text Manipulation
import rule for your Primary/CAD source with the following text (or replace with your custom logic that returns an array of subsidiary ids, making sure that the fallback is an array or an empty array):
Last updated