I think I am missing something simple...
I am performing a record.load on a sales order. I want to send this as JSON to an external http as a POST. That is all working fine. But I want to add data to that before it sends. The normal method appears to be to simply add an element like
jsontosend.newelementname = 'newelementvalue';
..but it comes out as undefined if I write it to debug.
What am I doing wrong?