QuestionQ11

Scripting and Automation

A developer built an email that uses the @subjectLine variable for its subject line. After revisions, the developer declared @subjectLine in multiple places within the email, including:

  • %%[ SET @subjectLine = 'Enjoy 10% off today' ] %% declared at the top of the HTML body
  • %%[ SET @subjectLine = 'Enjoy 15% off today' ]%% declared at the top of the Text body
  • %%[ SET @subjectLine = 'Enjoy 5% off today' ] %% declared at the bottom of the HTML body
  • %%[ SET @subjectLine = 'Enjoy 20% off today' ]%% declared within the Subject Line

Which subject line will be used at deployment time?

  • A Enjoy 10% off today
  • B Enjoy 20% off today
  • C Enjoy 15% off today
Explanation

Marketing Cloud Engagement processes AMPscript in the HTML body before the text body and processes the subject line last. The assignment in the subject line therefore overwrites the prior assignments, leaving @subjectLine set to Enjoy 20% off today.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!