Mahmoud Mohamed
08/18/2024, 7:05 PMCeligo AI
08/18/2024, 7:05 PMAI generated answer (using internal Slack threads):To rename a locked custom record in NetSuite using SuiteScript, you would typically load the custom record type in a script and change its values. However, if the record is locked by a workflow, you may need to adjust the context settings of the Lock Record action to not include your script type or set it to User Interface. Here is a general example of how you might load a custom record and change its values:
javascript
var record = nlapiLoadRecord('customrecord_my_custom_record', '1');
record.setFieldValue('name', 'New Name');
nlapiSubmitRecord(record);
Please replace 'customrecord_my_custom_record' with your custom record internal id and '1' with the id of the record you want to rename.
Remember, this is a general example and might not work in your specific case due to the locked status of the record. If the record is locked by a workflow, you might need to adjust the context settings of the Lock Record action to not include your script type or set it to User Interface.
******
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
08/18/2024, 7:05 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.837178349
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.836847305
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.82518357
Celigo AI
08/18/2024, 7:05 PM