Is there a way to suppress NS from emailing a new ...
# suitescript
m
Is there a way to suppress NS from emailing a new Message Record? I want to override the Sender value.
d
Is the sender value always going to be the same?
m
no
I want to change it to a Employee record that stands in as a Department
d
How are the messages being generated? On the transaction by button click? Or automated/workflow/SS?
m
and it could be different depending on the record
I’ve worked out the automated ones
these are when the messages are generated from the communication tab
I have a userevent script deployed against the Message record
d
☝️ I would be interested in how you did the automated ones… as I need this for one of my Use Cases
@Miquel Brazil I believe the UE script should be able to intercept this as well
m
the automated version creates the record type itself so it can use the email api directly
d
So your UE script triggers when the system generates a email? ?
I can’t get mine to work
m
I’ve been able to verify that the message is being sent during the beforeSubmit event
so now I’m trying to find a way to supress the actual emailing of the record so that I can run my own email call
d
you mind sending me a SS of the Deployment by DM?
I want to check it out… because I need to dynamically insert the message id into the template.
m
Sure. Not in front of my computer at the moment, but I can do it later this evening or tomorrow
d
Also I will play around and see if I can get it to trigger on that button click over the weekend
m
Yea message ID would have to be on
afterSubmit
but the message will have sent already
d
well so long as I can generate a UUID and put it on a custom field I don’t care