tuli
06/02/2025, 3:04 PMCeligo AI
06/02/2025, 3:04 PMAI generated answer (using internal Slack threads):To update a multi-select field using NetSuite's standard REST API, you can use the
record.submitFields
method. This method should work server-side. However, it might not work in the console for multi-select fields. Here is a sample code snippet:
javascript
var recordId = record.submitFields({
type: record.Type.SALES_ORDER,
id: '123',
values: {
'custbody_multi_select_field': ['1', '2', '3'] // array of internal ids
},
options: {
enableSourcing: false,
ignoreMandatoryFields : true
}
});
In this example, 'custbody_multi_select_field' is the internal id of your multi-select field and ['1', '2', '3'] is an array of the internal ids of the options 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.
******Celigo AI
06/02/2025, 3:04 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.829580069
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.827920735
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.825389802
Celigo AI
06/02/2025, 3:04 PM