RE: Add Selection to List/Select Field w/ SuiteScript

Hi, is it possible to add a selection to a list field with SuiteScript, similar to how you can do it in the UI by clicking the ‘+’ button?

I thought maybe I could use record.create, but I don’t think custom lists are a supported record type.

mmascitto Beginner Asked on April 20, 2020 in SuiteCloud.
Add Comment
1 Answers

Maybe convert it to a custom record instead of a custom list?

Advanced Answered on April 20, 2020.

The problem is I don’t want the order of the options to be in alphabetical order, and if I do a custom record, I haven’t figured out a way to control the ordering without doing some sort of prefix gimmick added to each option.

on April 20, 2020.

Actually figured out you can update a custom list with SuiteScript. Just use record.load. The record type is ‘customlist’ and the ID is the the ID of the custom list. The list values are considered a sublist, so you can just select a new line and add a value. I didn’t try, but I’m sure you could probably create a custom list too on the fly with record.create.

on April 20, 2020.

sublistId is “customvalue”

on August 2, 2021.
Add Comment

Your Answer

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