Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

How to get Subject in email template body

ryancox
Giga Contributor

Is it possible to get the Subject of a notification to be used in the body of a template?

I am trying to use templates more often and I would be helpful if I could pull the subject from the notification that is using the template into the body of the email.

Make sense?

1 ACCEPTED SOLUTION

Hmmm, interesting one, I tried the above one but did not work so I explored the more options and came out with solution.


Put the below code where you want the subject to be printed inside the body of the notification email template.



<mail_script>


template.print(email.getSubject());


</mail_script>


View solution in original post

6 REPLIES 6

BIngo. I even thought about that early on because I know you can set the subject that way. Guess I should have tried first. Thanks.


This is EXACTLY what I needed without having to think too much!  Thank you!