Aaron McCausland
04/02/2026, 2:48 PMCeligo AI
04/02/2026, 2:48 PMAI generated answer (using internal Slack threads):****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ****** Based on the conversations, there isn't a transaction search join field on Customer(Main) that includes both the Customer's ID and Name together. You would need to get them both in the results and concatenate them together if you want that. In NetSuite, you can join fields from related records in a search, but the join is based on the relationship between the records, not the fields within the records. So, you can't directly join the Customer ID and Name fields together in a search. You can, however, include both fields in your search results and then concatenate them together in your results processing. Here's an example of how you might do this:
javascript
var search = nlapiCreateSearch('transaction',
[new nlobjSearchFilter('mainline', null, 'is', 'T')],
[
new nlobjSearchColumn('entityid', 'customerMain'),
new nlobjSearchColumn('companyname', 'customerMain')
]
);
var resultSet = search.runSearch();
resultSet.forEachResult(function(result) {
var customerId = result.getValue('entityid', 'customerMain');
var customerName = result.getValue('companyname', 'customerMain');
var combined = customerId + ' ' + customerName;
// Do something with combined...
return true; // Continue to next result
});
In this example, the 'entityid' and 'companyname' fields from the 'customerMain' join are included in the search results. Then, in the results processing, the values of these fields are concatenated together for each result.Celigo AI
04/02/2026, 2:48 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.83807385
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.835998535
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.835754395
Celigo AI
04/02/2026, 2:48 PM