NS AdminA
12/13/2024, 2:51 AMCeligo AI
12/13/2024, 2:51 AMAI generated answer (using internal Slack threads):To find scripts that are creating new address records on vendors, you can look into User Event (UE) scripts or Client scripts that are triggered on the Vendor record. These scripts can be found in the NetSuite system under Customization > Scripting > Scripts > New. In the context of the provided conversations, it seems that users are discussing how to handle address changes on Vendor records. They mention using client scripts to track changes in addresses and using SuiteScript to interact with address subrecords. One user shared a code snippet for updating the billing address on a vendor bill:
javascript
var recobj = nlapiLoadRecod("vendorbill",3610248);
recobj.setFieldValue('billingaddress',23282);
nlapiSubmitRecord(recobj,true);
This script loads a vendor bill record, sets a new value for the billing address, and then submits the record.
However, it's important to note that if the address change doesn't work in the UI, it's unlikely to work in the script. Also, transactions are supposed to retain the values of the address at the time the transaction was made to preserve historical data.
For tracking changes to address subrecords on a Customer record, one suggestion was to compare values from the old record to the new record. This could be done in a User Event script that triggers on the afterSubmit event.
******
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
12/13/2024, 2:51 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.813416
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.809024751
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.80379647
Celigo AI
12/13/2024, 2:51 AM