- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-21-2016 07:53 AM
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-21-2016 10:24 AM
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>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-21-2016 12:37 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2018 05:51 AM
This is EXACTLY what I needed without having to think too much! Thank you!