<@U9THZDYQL>, Answer Id: 34717 has a sample script...
# suitescript
j
@wsangster, Answer Id: 34717 has a sample script which may point you in the right direction. It is a sample to check request receipt on a PO email. Similar to what you are looking to do.
w
@jarens Based on that script I'm able to set the Read Receipt field no problem with a User Event Script, but it won't set the Template. The template field is a List so I don't know if that matters. I can set it in the console after it loads. nlapiSetFieldValue('template', 4);
j
@wsangster. That is interesting. I suppose another way to do it is to load the template and set the message and subject fields using the script, instead of trying to set the template. Just a thought if you can't get the template to select. I'd think you should be able to though. It is in the schema browser as an option.
w
Ahh.. good idea.. Thanks again
@jarens It does work. I was focused on the TEMPLATE field. Waiting for that to populate. I didn’t watch the Subject line to see that it did actually apply. Thanks again.