How can I track which fields have been edited in Netsuite when syncing NetSuite sales orders to Salesforce?

If you have a limited set of fields to check you can make use of the old record. Rough idea below: function afterSubmit(context) { const oldRec = context.oldRecord; const newRec = context.newRecord; const updateSpec = getBodyChanges(newRec, oldRec); updateSpec.lines = []; // similar idea for lines but you also have to make sure lines (checking lineuniqekey)… Continue reading How can I track which fields have been edited in Netsuite when syncing NetSuite sales orders to Salesforce?