I'm struggling to find a way to set a subject line in the email template, is this not possible? Ultimately, I will be pulling the subject line from a data extension with some ampscript (and to do that, I need to set the ampscript variable in the subject line in the template) but I'm not seeing a way to set any subject line at the template level. Is this really not possible?
2 Answers
The templates in Marketing Cloud doesn't include the subject definition meaning that you will always need to create an email to set-up the subject.
You can assign the subject text to a variable using ampscript in the template and then, once you create the email based on that template, you just have to put the variable in the subject field. %%=v(@subject)=%%
-
1Yeah - I found that too. I was hoping to set everything in the template dynamically (pulling from data extensions) so my marketing team could simply create a new email from template, add the correct naming convention & audience segment & save/send. This adds a couple extra steps (they will have to map in the subject line and leader line). If that's the way it is...I guess that's all we can do. Seems like a logical enhancement though. Feb 11, 2020 at 13:44
You may use setSubject method in Apex
-
From what I can tell, this answer does not apply to the email template in Marketing Studio? I'm looking to create template based emails from a template in marketing studio...but can't see a way to assign a subject line (or an ampscript parameter) at the template level. Feb 10, 2020 at 23:15
-
-
1This answer would be correct if the question would be about email template in other salesforce clouds - but as the question was edited to show it’s a marketing cloud specific question- I agree this is not the answer. Feb 12, 2020 at 13:42
marketing-cloud
orampscript
to make the context clear, since email templates can apply to several different Salesforce products.