Ron
01/15/2025, 8:57 PMCeligo AI
01/15/2025, 8:57 PMAI generated answer (using internal Slack threads):Based on the provided Slack threads, it seems that the question about joining TransactionLine to SublistSubrecord in SuiteQL is not directly addressed. However, there are some insights related to handling sublists and subrecords in SuiteScript, which is a JavaScript-based API that allows extended customization and automation in NetSuite. In SuiteScript, you can access a sublist on a transaction and each sublist line has a unique line ID. You can use the
getSublistValuejavascript
var lineID = salesOrder.getSublistValue({
    sublistId: 'item',
    fieldId: 'id',
    line: i
});currentRecord.get()getSublistValuejavascript
var record = currentRecord.get();
for (var i = 0; i < linecount; i++) {
    var val = record.getSublistValue({
        sublistId: 'custpage_print',
        fieldId: 'custpage_selectsalesorder',
        line: i
    });
    alert(val + '' + i);
}Celigo AI
01/15/2025, 8:58 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.807749
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.798303783
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.798264861
Celigo AI
01/15/2025, 8:58 PM