The CreatorCon Call for Content is officially open! Get started here.

Set dynamic subject for email client template

Thi Dinh Nguyen
Tera Expert

Hello all,

I'm trying to create an email client template on the Incident Communication Task table. However, the subject of the template requires me to use field values from the related incident to populate. Here's what I have attempted:

- Use the ${field name} syntax in the Subject field. This worked, but the subject field only allows 100 characters, so I couldn't put all variables required in the subject.

- Create an email script. It didn't show up when I call it in the body, and when I put it in the subject instead, it just displayed the ${mail_script:...} line.

- Create a script include function and call it via javascript. This also didn't work.

So how can I achieve this? I appreciate your help.

Thanks

6 REPLIES 6

4b0d3
Giga Guru

Is "Incident Communication Task" table a custom table?  I'm unable to find it on personal instance to verify field names (I'm looking at sys_dictionary.list).  Notifications with mailscripts can be tricky, verify the recipient has their notifications on, or this wont even fire.   A mailscript could fail on 1 thing and not ever really tell you, other than in logs.

Verify the table on the notification matches what "current" is in the mailscript.

Hi, Incident Communication Task table is part of the Incident Communications Management application, activated by plugin. As for the remainder of your reply, please refer to my reply to Basheer.