BeyondERP.Newsletter
Menu

Setup page · Sales and marketing

Email template

A setup page where you create email templates for marketing campaigns.

Used by
Marketing coordinator, Marketing manager, Sales manager
Business process
Identify and qualify leads
Menu item
smmCampaignEmailTemplate
Main table
smmCampaignEmailTemplate
Data entity
smmCampaignEmailTemplateEntity
Setup steps
1 on this page
Show what matters for
PAGE GUIDEWhat the page does and how to use it8 sections. Choose a role to highlight what matters to you.
Everyone

1What it is and why

What it isA setup page where you create email templates for marketing campaigns.
What you do hereUse this page to prepare the emails that are sent in marketing campaigns, with variables for the contact name, campaign ID and URL. These campaign pages belong to the built-in marketing features. Where Dynamics 365 Sales is used, quotations and orders are shared with Supply Chain Management through prospect-to-cash dual-write.
ExampleFor example, BEAT writes the template WELCOME, 'Dear %PERSONNAME%, thank you for your interest in campaign %CAMPAIGN%', and sends it to the 420 contacts of its SPRING email campaign.
Email template page in Dynamics 365
The page in Dynamics 365. page title tab to open what to set or check
Functional consultant · Solution architect

2Where it fits

Business processIdentify and qualify leads
Menu pathSales and marketing › Setup › Campaigns › Email template
Set up firstCampaign types Microsoft Learn
Used next byAll campaigns Microsoft Learn
Related pagesEmail groups Microsoft Learn Media types Checked in Dynamics 365
End user · Functional consultant

3How to do it

About the examples: Examples and screenshots in this guide use BEAT, a demo company in a Dynamics 365 test environment. Use your own company's codes and values instead of copying them.

Step by step, with screenshots

Set up Email template1 screen

Use this page to prepare the emails that are sent in marketing campaigns.

  1. Screen 1

    Create a campaign email template

    Go to Sales and marketing > Setup > Campaigns > Email template

    1. Select New
    2. Enter the template name and subject
    3. Type the email text, using the variables shown below it for the contact name, campaign ID or internet address
    4. Select Save
    1NameBEAT-EMT
    2SubjectEmail template
    3Email textDear %PERSONNAME%, thank you for your interest in campaign %CAMPAIGN%.
    Create a campaign email template (zoomed on the outlined fields)
    Show the full screenCreate a campaign email template
    page title tab to open what to set or check

Steps from Microsoft

  1. Go to Sales and marketing > Setup > Campaigns > Email template.
  2. Select New, or select a template in the list on the left.
  3. Enter the Name and Subject.
  4. In the Template section, write the message under Email text, using %PERSONNAME% for the contact name, %CAMPAIGN% for the campaign ID and %URL% for the internet URL.
  5. Then select the template on the email campaign on All campaigns.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExampleTable column
NameThe name of the email template, chosen on email campaigns.Checked in Dynamics 365WELCOMEName
SubjectThe subject line of the email sent from the template.Checked in Dynamics 365Welcome to BEATSubject
Email textThe body of the email. The variables shown below the text, %PERSONNAME%, %CAMPAIGN% and %URL%, are replaced by the contact name, the campaign ID and the internet URL.Checked in Dynamics 365Dear %PERSONNAME%, thank you for your interest in campaign %CAMPAIGN%.

Common errors and fixes

MessageWhat to do
The email template is missing from the lookup on a campaign in another company.Email templates are kept per company; create the value in each legal entity that runs campaigns. Microsoft data model

Test checklist

  1. Create template WELCOME with Subject 'Welcome to BEAT'.
  2. Enter the email text with %PERSONNAME% and %CAMPAIGN%.
  3. Save and reopen the template.
  4. The text still shows both variables, and the list on the left shows 1 template named WELCOME.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Set up Email templateOne template per campaign message, using the %PERSONNAME%, %CAMPAIGN% and %URL% variables instead of typed names.The variables listed under the email text are filled per contact and campaign, so one template serves every recipient.How are campaign emails personalized?Typing a contact name or campaign ID into the text; every recipient then gets the same fixed name.Test: Email template keeps its variables

Feature management and licence

Licence or add-inOn the live system, Sales manager, Marketing manager and Marketing coordinator can maintain this page.

Checked in Dynamics 365

Solution architect

5Design impact

Shared or per companyPer company: each legal entity has its own records. Microsoft data model
Can it be undoneReversible: You can add, edit or delete email templates; check campaigns that use a code before you delete it. Microsoft data model
If you change it laterCampaigns keep the email template they were given; changing the description here changes what is shown on every campaign that uses the code. Microsoft data model
Technical architect

6Technical

Menu itemsmmCampaignEmailTemplate Checked in Dynamics 365
FormsmmCampaignEmailTemplate Checked in Dynamics 365
TablesmmCampaignEmailTemplateShown as “Campaign email template” in Record infoChecked in Dynamics 365
Data entitiessmmCampaignEmailTemplateEntityCampaign email templates Microsoft data model
Who can open itPrivilegesMaintain campaign email templates smmCampaignEmailTemplateMaintainView campaign email templates smmCampaignEmailTemplateViewDutiesInquire into campaign progress smmCampaignProgressInquireMaintain campaigns smmCampaignsMaintainEnable marketing process smmMarketingProcessEnable
3 security rolesMarketing coordinator CRMMarketingCoordinatorMarketing manager CRMMarketingManagerSales manager TradeSalesManager
Checked in Dynamics 365
Roles to set it up and use itTo set it up or change itSales manager TradeSalesManagerMarketing manager CRMMarketingManagerMarketing coordinator CRMMarketingCoordinatorGive people one of these roles. On this system, 3 roles can open this page.Checked in Dynamics 365
Actions on the pageOptions: Personalize, Page options, ShareChecked in Dynamics 365
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=smmCampaignEmailTemplate
Integrate withsmmCampaignEmailTemplateEntity data entity Microsoft data model
Data migrationsmmCampaignEmailTemplateEntity (Campaign email templates): loaded for each company, in Microsoft's default template 330 - Sales and marketing.Load order: Microsoft's default template 330 - Sales and marketing loads Campaign email templates at execution unit 1, level 30, sequence 10. Lower levels load first, and entities at the same level load in sequence order.Load first: the default templates at lower levels (System setup to General ledger)Microsoft Learn
Table definitionsmmCampaignEmailTemplate columns and relations Microsoft data model
Everyone

8Sources