RE: Transform a salesrecord to invoice through clientscript

Im trying to transform salesorder record to invoice,but Im getting Invalid Initilize error and invalid refernce.but I have given form Id as internalId y Im getting this error can Any one help me
function saveRecord(context) {
        var objRecord = record.transform({
            fromType: record.Type.SALES_ORDER,
            toType: record.Type.INVOICE,
            isDynamic: true,
revathi Rookie Asked on September 17, 2021 in SuiteScript.
Add Comment
4 Answers

Need to share more informatiion, like the exact error message and code. From your code, the only thing that can be guess is is that you got the internal id of the sales order wrong. Potentially you are trying to transform a sales order that cannot  be transformed into an invoice.

Advanced Answered on September 17, 2021.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.