Vishal Chaudhari
04/02/2025, 11:41 AMCeligo AI
04/02/2025, 11:41 AMAI generated answer (using internal Slack threads):To turn off the customer credit hold using SuiteScript, you can use the
setValue
method on the customer record to change the 'creditHoldOverride' field. Here is a sample code snippet:
javascript
var customerRecord = record.load({
type: record.Type.CUSTOMER,
id: customerId
});
customerRecord.setValue({
fieldId: 'creditHoldOverride',
value: 'OFF' // Set to 'ON' to enable credit hold
});
var customerId = customerRecord.save({
enableSourcing: false,
ignoreMandatoryFields: true
});
This script loads the customer record, sets the 'creditHoldOverride' field to 'OFF', and then saves the record.
Please note that this script should be run with appropriate permissions to modify the customer record. Also, remember to set the 'creditHoldOverride' field back to its original state if necessary.
******
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
04/02/2025, 11:41 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.860142767
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.848656952
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.836234808
Celigo AI
04/02/2025, 11:41 AM