I am using Rest web services using netsuite standa...
# ask-stanley-ai
t
I am using Rest web services using netsuite standard API, how can i update value on Multi-select field population ?
c
AI 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:
Copy code
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. ******
Slack 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
Please provide your feedback on this answer.