How to transform record in Netsuite Scripting ?

Hi All,

Transform is very useful api, this will get all data from the record from which script is transforming and there is less burden on script. No need  to copy all data and then set one by one and take care of all logic.
Please use below Script to transform record in Netsuite :

var objRecord = record.transform({
    fromType: record.Type.SALES_ORDER,
    fromId: salesorderid,
    toType: record.Type.CASH_SALE,
    isDynamic: true,
});
 
 
Thanks
Abhi 

Comments

  1. How do I use defaultvalues: {customform:89}.

    this line throws errors.

    ReplyDelete
    Replies
    1. Looklike V is not in Capital letter,
      use like this
      defaultValues: {
      customform: 89
      }

      Delete

Post a Comment

Thanks for you message, please join us on Facebook and Linkedin