What is the correct way to set a multiselect value...
# ask-stanley-ai
e
What is the correct way to set a multiselect value on suitescript 2.1?
c
AI generated answer (using internal Slack threads):
To set multiple values on a Multiselect field using SuiteScript 2.1, you can use an array of IDs for the values you want to select. Here is an example:
Copy code
javascript
rec.setValue({
    fieldId: theFieldId, 
    value: [1,3]
})
Please note that the array should contain the internal IDs of the values you want to select. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.853366852
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.831895292
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.829684675
Please provide your feedback on this answer.