Transforming an SO to IF using Suitescript 1.0 and suitescript 2.0

This code will transform a sales order to itemfulfillment using suitescript 2.0 and 1.0

suitescript 2.0
var soRecord=record.transform({
                    fromType: record.Type.SALES_ORDER, //The record type of the existing record instance being transformed.
                    fromId: 4893231,//id of the record
                    toType: record.Type.ITEM_FULFILLMENT // The record type of the record returned when the transformation is complete
                });
suite script 1.0  
var ifRec = nlapiTransformRecord
             ('salesorder',4893130 , 
             'itemfulfillment',
              {recordmode:'dynamic'});

Leave a comment

Your email address will not be published. Required fields are marked *