Loading
Feature Degradation | Agentforce Voice Read More
Email in Marketing Cloud Engagement
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Personalization Strings in Email Studio

          Personalization Strings in Email Studio

          These tables include available personalization strings for use in Email Studio.

          Important
          Important Don’t use a personalization string as a column name in a sendable data extension or profile attributes.

          Email Data

          If you include a date personalization string in your email, it appears in the email in US format. You can use AMPscript to change the format as necessary.

          Personalization String Description
          %%xtmonth%% Full name of the month in which the email is sent
          %%xtmonthnumeric%% Current month as a number
          %%xtday%% Current date of the month when the email was sent (for example, 22)
          %%xtdayofweek%% Current day of the week when the email was sent (for example, Thursday)
          %%xtyear%% Current year when the email was sent
          %%xtshortdate%% Current date when the email was sent in short format. For example, 12/13/2024
          %%xtlongdate%% Current date when the email was sent in long format. For example, Monday, December 13, 2010
          %%linkname%% Descriptive name of a hyperlink, known as the link alias. This string populates with the value of the link's alias or the complete URL if no alias is specified at the link level. This personalization string is only available in use with the web analytics connector. This string allows a web analytic program to identify web activity that initiated from an individual link within the email. Link alias values generated via personalization strings, AMPscript, or SSJS don’t reflect in the %%linkname%% value.
          %%emailname_%% Internal name of the email
          %%_messagecontext%%

          Context in which the customer views the email. Resolves to these values:

          • SEND - Display the rendered final message for sending to subscriber
          • PREVIEW - Display the send preview options available within editor
          • VAWP - Display content
          • VIEWSENT - Display the non-subscriber link to preview content
          • FTAF - Display the rendered Forward To a Friend message
          • LANDINGPAGE - Display a landing page or microsite
          • VALIDATION - Display information corresponding to the validate option in Marketing Cloud
          • LINKRESOLUTION - Display resolved dynamic script at click time
          • SMS - Display SMS message content
          • SOCIAL - Display Social Forward content
          • SITE - Display CloudPages content
          %%_MessageTypePreference%% Resolves to Text or HTML according to the subscriber's email type preference
          %%_replycontent%% The body of the email you sent. This personalization string is used in triggered sends to place the body of an email into a reply email
          %%_IsTestSend%%

          Resolves to True if the email job is marked as a Test Send

          %%jobid%% Email send ID (the unique identifier associated with the send of the email, for tracking data purposes)
          %%_PreHeader%% Any content with the assigned value for the Preheader attribute of the email message
          %%Email_Preheader%% Populates the preheader in an email from the brand tags
          %%double_opt_in_url%% Inserts the double opt-in link in an email

          Data About the Recipient

          Note
          Note Don’t include personally identifiable information, such as email address, in email links.
          Personalization String Description
          %%emailaddr%% Subscriber's email address
          %%fullname_%% or %%fullname%% Value for the subscriber's full name as entered in the profile attribute Full Name
          %%firstname_%% or %%firstname%% Value for the subscriber's first name as entered in the profile attribute Full Name. This string pulls the value before the space.
          %%lastname_%% or %%lastname%% Value for the subscriber's last name as entered in the profile attribute Full Name. This string pulls the value after the space.
          %%comment_%% or %%comment%% Value of the user-defined profile attribute for this subscriber
          %%subscriberid%% Subscriber ID (the unique identifier for this subscriber)
          %%_subscriberkey%% The unique identifier for the subscriber, if you use the subscriber key feature
          %%line_address_id%% Unique LINE-generated user ID. These IDs vary by provider.
          %%line_job_id%% Unique job ID number for the LINE send event
          %%line_subscriber_id%% Unique identifier representing a subscriber for that particular LINE Channel
          %%listid%% List ID
          %%list_%% List ID followed by the type of email (HTML or text). For example: 11955_HTML
          %%listsubid%% The identification number associated with this subscriber's membership on this particular list (This data is rarely used)
          %%_messagetypepreference%% The subscriber's text or HTML preference. Resolves to text or to HTML.
          %%mobile_number%% Mobile number of the subscriber used as part of an SMS Interaction
          %%short_code%% Short code associated with the response as part of an SMS Interaction
          %%_listname%% The name the user gives to the list
          %%_emailid%% The email ID assigned by the system
          %%_JobSubscriberBatchID%% The BatchID for the Batch containing the Subscriber who received the send
          %%_DataSourceName%% The audience name that the email was sent to. The audience name refers to the Publication List for Journey sends.
          %%_ImpressionRegionID%% Returns the active region ID or 0 if none is active
          %%_ImpressionRegionName%% Resolves to the currently active impression region or evaluates to an empty string if no impression region has been set

          Data About the Sender

          Personalization String Description
          %%replyname%% Your reply name, as defined in your account settings
          %%replyemailaddress%% Your reply email address
          %%memberid%% Your account ID (MID)

          %%member_busname%%

          %%member_addr%%

          %%member_city%%

          %%member_state%%

          %%member_postalcode%%

          %%member_country%%

          The data entered in the Address in Email Footer fields located in your Account Information workspace.

          If you're creating an email based on a standard template, this data is included by default in the email footer.

          Standard Links

          Personalization String Description
          %%view_email_url%% If you're creating an email based on a standard template, this link is included by default in the email header.
          %%ftaf_url%% Usually, you want to insert the Forward to a Friend graphic from your Forward to a Friend folder rather than use this personalization string.
          %%subscription_center_url%% If you're creating an email based on a standard template, this link is included by default in the email footer.
          %%profile_center_url%% If you're creating an email based on a standard template, this link is included by default in the email footer.
          %%unsub_center_url%% If you're creating an email based on a standard template, this link is included by default in this email footer.

          Microsites

          Personalization String Description
          %%microsite_base_url[default]PageID[/default]%% You can enter this string value to reference a landing page. Replace PageID with the ID value for the landing page.

          Analytics

          The areas to enter these strings in the application are available only if you have web analytics functionality enabled in your account. To enable web analytics, contact your representative.

          Personalization String Description
          %%AdditionalInfo_%% You can enter this string value in the Send Wizard as part of a Guided Send when the analytic connector is enabled.

          %%__AdditionalEmailAttribute1%%

          %%__AdditionalEmailAttribute2%%

          %%__AdditionalEmailAttribute3%%

          %%__AdditionalEmailAttribute4%%

          %%__AdditionalEmailAttribute5%%

          These values are set in the property of the email when the analytic connector is enabled.

          You can have up to five AdditionalEmailAttribute fields to enter values.

          These attributes aren’t available in emails created before enabling more email attributes. Resave these emails to use these additional attributes.

          Note
          Note Existing email before AEM feature is enabled must be resaved to ensure additional email properties can be used.
          Note
          Note To ensure more email properties can be used, resave existing emails that use more email attributes.
           
          Loading
          Salesforce Help | Article