dmaguire
01/08/2025, 6:14 PMCeligo AI
01/08/2025, 6:14 PMAI generated answer (using internal Slack threads):To modify the price list generated from the customer record to include the customer id, you would need to create a custom field on the price level record to store the customer id. This can be done using SuiteScript. Here is a sample code snippet that you can use as a starting point:
javascript
var record = nlapiLoadRecord('pricelevel', pricelevelId);
record.setFieldValue('custrecord_customer_id', customerId);
nlapiSubmitRecord(record);
In this code snippet, pricelevelId
is the internal id of the price level record and customerId
is the internal id of the customer. custrecord_customer_id
is the script id of the custom field on the price level record.
Please note that this is a simplified example and you may need to adjust it to fit your specific needs. For example, you may need to add error handling and check if the price level record can be loaded and the field can be set.
******
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
01/08/2025, 6:14 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.79753834
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.793517172
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.793215096
Celigo AI
01/08/2025, 6:14 PMdmaguire
01/08/2025, 6:28 PM