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:

RE: Units of Measures (UOM) in SuiteLet

Suitelet UOM:

RE: Units of Measures (UOM) in SuiteLet


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.

Al Calzone Rookie Asked on March 3, 2020 in SuiteScript.
Add Comment
1 Answers

Use ‘unit’ as your source, not units type.  You may need to add a filter to the source to reduce the entries available.  If ‘unit’ does not work, use ‘-221’ instead, that is the internal id for ‘unit’.

Normally you can get the list of internal id for records here Internal ids of records, but for some reason ‘unit’ is missing from that list.

Intermediate Answered on March 3, 2020.

Indeed that is the answer. I ve tried ‘unit’ and didnt work but ‘-221’ does.

Internal Ids also is very useful.

Thanks a lot

on March 3, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.