Dynamic Email Subject in the Email Body

sushma9
Tera Contributor

Hi All,

 

 

I want to the email subject to be dynamic and when i am using the script , i am able to see the body in the email but subject is not Populating the email and it is not showing as  Proper Email  . Please let me know if anything has to be changed .

if(conditon matches){

{email.setSubject(" Your selection is made ")

email.setBody("testing Purpose");

}

 

Results :

sushma9_0-1714585381732.png

 

 

2 REPLIES 2

AshishKM
Kilo Patron
Kilo Patron

Hi @sushma9 , 

Where exactly you are checking this. Email Logs or Notification Preview.

If you open that notification and check via "Preview Notification" the Subject line is showing there. Check there if dynamic value is visible for subject line.

 

-Thanks,

AshishKM


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

sushma9
Tera Contributor

@AshishKM Subject line is showing but the email is not in proper format and i have added the proper tenplate in the email as well but its not showing in the when i priviewd it