NSObsessed
05/24/2018, 1:46 PMfunction Sales_Order_Email()
{
if ((type =='edit') || (type=='xedit'))
{
//****SEND EMAIL IF ORDER CONDITION HAS CHANGED***
var related_so=nlapiGetRecordId();
var old_rec= nlapiGetOldRecord();
It triggers on edit, just wont trigger on xdit.
On my script deployment, I have left the 'Event type' as blank which i assume will then allow it to run on all types. Historically this has always worked, so there is no restriction there....