Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Setting Subject in Mail Script for Email Client Template

pardhiv
Tera Contributor

Can we set a subject in Mail Script for Email Client Template (sys_email_client_template) . Tried below

 

pardhiv_0-1666330935104.png

 

 

 

 

pardhiv_1-1666330956480.png

 

 

12 REPLIES 12

Not applicable

Hi, 

Please use below .

email.subject ='subject line here ';

Hope this will help you.

Sebastian L
Mega Sage

Hi,

No, you can't set the subject based on mail script in email client template, only by doing some crazy workarounds, which I would not recommend. You don't have access to the email object in email client templates. 

 

But you can set values based on existing fields so you know.. ${number} etc. directly in the subject line.


Best regards,
Sebastian Laursen

Not applicable

You are right, it's my mistake , i just seen his 2nd screen shot and replied, thanks for correcting me, really appreciate.

I have to conditionally populate the subject.

like if Assignment Group = X , Add ABC in subject

Should I create multiple email Client templates based on number of possible Templates.