Isaac Rumbold
07/08/2025, 2:54 PMCeligo AI
07/08/2025, 2:54 PMAI generated answer (using internal Slack threads):To set a multi-select field value in SuiteScript, you can use the
setValue
method with an array of IDs for the values you want to select. Here is an example:
javascript
rec.setValue({fieldId: theFieldId, value: [1,3]})
In this example, theFieldId
is the ID of the multi-select field you want to set, and [1,3]
is an array of the internal IDs of the options you want to select.
Please note that the array should contain the internal IDs of the options you want to select, not their names or shortcodes. If you're unsure of the internal IDs, you may need to look them up in NetSuite.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
07/08/2025, 2:55 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.872193873
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.846512198
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.84199661
Celigo AI
07/08/2025, 2:55 PM