Ron
02/18/2026, 2:22 PMCeligo AI
02/18/2026, 2:22 PMAI generated answer (using internal Slack threads):To access the salesrep field on the salesorder record via SuiteScript, you can use the
getValue or getText methods. Here is an example:
javascript
var salesOrderRecord = record.load({
type: record.Type.SALES_ORDER,
id: 'your_sales_order_id'
});
var salesRepId = salesOrderRecord.getValue({
fieldId: 'salesrep'
});
var salesRepName = salesOrderRecord.getText({
fieldId: 'salesrep'
});
In this example, salesRepId will hold the internal ID of the sales rep, and salesRepName will hold the name of the sales rep.
******
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
02/18/2026, 2:22 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.836364746
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.829650879
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.823913634
Celigo AI
02/18/2026, 2:22 PM