RE: Units of Measures (UOM) in SuiteLet
Hello All,
I am creating a Suitelet in which the users can select multiple Items, Quantities, UOM etc. When user Submits the form will automatically populate the lines on Transactions (SO,PO).
All works fine apart of the UOM.
Populating the SL field for the UOM shows only the base units. But on the Transaction Line level the UOM field has all units of measures.
Transaction UOM:
Suitelet UOM:
Suitelet Field Code:
var subFldUOM = sublistTrans.addField({
id: 'custpage_uom_select',
type: serverWidget.FieldType.SELECT,
label: 'Units Of Mesure',
source: 'unitstype'
});
Note: I have thought the possibility to have this field populated via Unit Type search and using ‘Field.addSelectOption(options)’ but I believe this will have a negative impact on the Governance, considering that this will run for each individual line created on the SL.
Any idea how I can handle this?
Thank you in advance.
Stumbled upon this old post. Thank you @SouthsideSandi for the -221 option. By chance, I tried the sublist id ‘uom’ as the source and it worked just like -221. The SuiteScript Record Browser shows ‘uom’ as the sublist ID for Unit on the Units Type record.
Disregard. I still had -221 in my code.

