Craig
09/24/2025, 9:37 AMrecord.transform({
fromType: record.Type.CUSTOM_SALE,
fromId: customSaleRecordId,
toType: record.Type.INVOICE,
isDynamic: false
})
Testing suggests you cannot transform a customsale record (custom transaction with style set to sale) into an invoice.NickSuite
09/24/2025, 10:25 AMCraig
09/24/2025, 10:27 AMError: Transaction type specified is incorrect.
Craig
09/24/2025, 10:28 AMNickSuite
09/24/2025, 10:28 AMCraig
09/24/2025, 10:29 AMCraig
09/24/2025, 10:30 AMNickSuite
09/24/2025, 10:30 AMCraig
09/24/2025, 10:30 AMCraig
09/24/2025, 10:30 AMNickSuite
09/24/2025, 10:31 AMCraig
09/24/2025, 10:31 AMNickSuite
09/24/2025, 10:32 AMCraig
09/24/2025, 10:32 AMMGBC
09/24/2025, 6:13 PMMGBC
09/24/2025, 6:14 PMCraig
09/24/2025, 6:14 PMCraig
09/24/2025, 6:14 PMMGBC
09/24/2025, 6:16 PMCraig
09/24/2025, 6:16 PMNickSuite
09/24/2025, 6:16 PMMGBC
09/24/2025, 6:16 PMNickSuite
09/24/2025, 6:17 PMCraig
09/24/2025, 6:17 PMMGBC
09/24/2025, 6:17 PMCraig
09/24/2025, 6:17 PMrecord.Type.INVOICE
NickSuite
09/24/2025, 6:18 PMCraig
09/24/2025, 6:18 PMCraig
09/24/2025, 6:18 PMCraig
09/24/2025, 6:18 PMMGBC
09/24/2025, 6:18 PMCraig
09/24/2025, 6:19 PMCraig
09/24/2025, 6:19 PMthis.CUSTOM_SALE = 'customsale';
Craig
09/24/2025, 6:19 PMCraig
09/24/2025, 6:28 PM"type": "error.SuiteScriptError",
"name": "INVALID_RCRD_TYPE",
"message": "The record type [CUSTOMSALETRANSACTION] is invalid.",
Craig
09/24/2025, 6:29 PMfunction createInvoiceFromCustomSalesTransaction() {
return record.transform({
fromType: 'customsaletransaction',
fromId: 260648,
toType: 'invoice',
isDynamic: false
})
}
Craig
09/24/2025, 6:30 PMNickSuite
09/24/2025, 6:31 PMCraig
09/24/2025, 6:32 PM"type": "error.SuiteScriptError",
"name": "INVALID_TRANS_TYP",
"message": "Transaction type specified is incorrect.",
Craig
09/24/2025, 6:34 PM