Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
getSelectOptions not Working on Some Select Fields
The field.getSelectOptions method is not working on several native NS fields, but works fine on custom select fields. I am creating a new item via SS 2.0. When I call .getSelectOptions for countryofmanufacture, stockunit, saleunit, or purchaseunit, nothing is returned. stockunit, saleunit, or purchaseunit are all set to the unitstype base unit, even though I am explicitly trying to set them after the unitstype is set. Interestingly, if I run the same script with the same source data again once the item is created (i.e., I am updating an existing item), countryofmanufacture still does not return,
0