I've got a button on a Sales Order that calls a Su...
# suitescript
d
I've got a button on a Sales Order that calls a Suitelet to email a PDF. I'm just now noticing that my User Event script that is deployed on 'Message' records is no longer getting triggered when the email is sent. It works fine if I manually send the email, but email.send() through a suitelet does not trigger it. Am I crazy that I think this was working at some point or is it not possible to trigger a user event form a suitelet in this case?
m
I'm pretty sure I've noticed the same thing before - the send email APIs (both SS1.0 and SS2.x) don't seem to trigger UEs on the Message record, at least reliably. To solve for that, I've got whatever function/processing that's running in the Message record's UE also being called separately with the relevant
nlapiSendEmail()
/
email.send()
calls.