How to Create a Marketing Email in Dynamics 365 CRM
Email is a vital marketing channel for most modern organizations. It's also a core feature of Dynamics 365 Marketing, which provides tools for creating graphically rich marketing emails with dynamic, personalized content. Marketing can send large volumes of personalized marketing emails, monitor how each recipient interacts with them, drive customer-journey automation based on these interactions, and present results both for individual contacts and with aggregate statistical analytics.
Process overview—to set up and execute a simple email campaign, you must do the following:
- Create an email design that delivers your message and includes required elements such as a subscription-center link, your physical address, email subject, and email From address.
- Publish the design by selecting Go live. This copies the design to the Dynamics 365 Marketing email marketing service, which makes the message available for use by a customer journey (but doesn't deliver any messages yet). The go-live process also activates any dynamic code and replaces links with trackable versions that are redirected through Dynamics 365 Marketing.
- Set up a customer journey that, at a minimum, identifies a published target segment and a published email message to deliver to that segment.
- Activate the customer journey by choosing Go Live. The journey then drives the email-delivery process and other automation features. It personalizes and sends each individual message, collects interaction data, and can follow up with additional processes based on those interactions.
This exercise describes how to do the first two of these steps.
To create a marketing email and go live:
- Go to Marketing > Marketing Execution > Marketing Emails. You will see a list of existing marketing emails. Select New on the command bar.
2. The New Marketing Email page opens with the Select an Email Template dialog box shown. Each template provides a starting point for designing a particular type of message. The template dialog box provides tools for searching, browsing, and previewing your template collection.
For this exercise, select the blank template so that you can step through all the required content. Then choose Select to apply the template to your new message.
3. The Select an Email Template dialog box closes and the content (if any) from your selected template is copied to your design. Select the More header fields button at the side of the header to open a drop-down dialog and then enter a Name for your new message.
4. Enter a Subject for your message. The subject is an important setting because it is one of the first things recipients will see when they receive the email. Recipients may use the subject to decide whether to open or read the message.
5. In the main part of the page, you now see the design canvas (on the left side), where you can drag, arrange, and enter content. If you chose the blank template, then your design includes just a single one-column section (layout) element with nothing in it. A Toolbox on the right side of the page provides design elements that you'll use to construct your message. Drag a Text element from the Toolbox tab into the section element. When you have dragged the element to a suitable location, a blue shaded region appears. Release the mouse button to drop the element at that location.
6. When you drop the text element, you'll see some placeholder text within the element and a floating toolbar just below or above it.
Select and remove the placeholder text, and then add your own. Use the toolbar buttons to style your text as you would in a text editor like Microsoft Word (point to any toolbar button to see what it does). Most of the buttons are for styling text and paragraphs, but there are also buttons for creating links; entering dynamic text (more on this later); and moving, copying, or deleting the entire text element.
7. An easy way to personalize the message is to include the name of the recipient in the greeting. Add the recipient's name as dynamic text by using the assist edit feature as follows:
- Working in the text element you just added, enter a suitable opening such as "Dear".
- On the pop-up toolbar, select the Assist edit button . This opens the assist-edit dialog.
- Select the Contextual radio button, and then select Contact from the combo box here. The Contextual setting means that you will place a dynamic value related to the context where you use the message, while the Contact setting means that the context relates to the individual recipient (contact) of the message.
- Select Next to continue to the next page of the assit-edit tool.
- On the previous page, you choose the contact entity (in context). On this page, you must choose which field from that entity you want to place. We're building the salutation, so we'd like to show the recipient's first name here. Select the Property radio button and then start to type "first" into the combo box here. This searches the available fields for those that include the text "first," which greatly reduces the number of fields you need to look through. Select First Name from the list as soon as you can see it.
- Calculated and rollup fields cannot be used in Marketing emails.
- Select OK to place the expression you've built and close the assist-edit tool. The full salutation now looks like this: Dear {{contact.firstname}},. (If you prefer, you can enter that code directly without using assist edit.)
8. The body of all email messages must include both a subscription-center link and your organization's physical address. These are required by law in many jurisdictions, and Dynamics 365 Marketing won't let you publish any marketing email that doesn't have them. These values are provided by the content settings entity, which enables you to store their values centrally and change them for each customer journey as needed. Therefore you'll place these as contextual dynamic values, just as you did with the recipient's name (though in this case, the relevant context is the journey rather than the recipient). Place them by using assist edit as follows:
- Choose a suitable location for your physical address, and then use assist edit to place it. Select Contextual and then ContentSettings on the first page of the assist-edit tool. Select Next and then pick Property and msdyncrm_addressmain on the second page. Select OK to place the expression {{msdyncrm_contentsettings.msdyncrm_addressmain}} into your message.
- Choose a suitable location for the subscription-center link, and then enter some anchor text there (such as "Manage your subscriptions"). Select the anchor text, and then select the Link button from the floating toolbar, which opens the Link dialog box. Select the Assist edit button for the Link field. In the assist-edit dialog, select Contextual and then ContentSettings on the first page. Select Next and then pick Property and msdyncrm_subscriptioncenter on the second page. Select OK to place the expression {{msdyncrm_contentsettings.msdyncrm_subscriptioncenter}} into the Link field.
9. You should usually include at least one visible image in your design because this will invite recipients to load images, which is required for Dynamics 365 Marketing to log the message-open event. Drag an Image element from the Toolbox onto the canvas. This time, when you drop the element, you'll see an image placeholder and the Properties tab, which shows configuration settings for the selected element.
10. On the Properties tab, select the Image gallery button at the right side of the Source field. The Select a file dialog box opens.
11. Your message now includes all the minimal required and recommended content, so go to the Preview tab to see an approximation of how it will be rendered on various screen sizes and how its dynamic content will get resolved.
12. To make sure your message includes all required content and is ready to send, select Check for Errors in the command bar. Dynamics 365 Marketing checks your message, and then displays results in the notification bar at the top of the page. If more than one error is found, then select the expansion button to see all of them.
13 . Until now, your previews and error checks have been simulated. The final test is to deliver the message to yourself, open it in your email program, and inspect the results. On the command bar, select Test Send. A Quick Create form slides in from the side.
Enter your own Email Address in the field provided, and select the Test Contact and Test Content Settings records to use when resolving dynamic content (these work the same as for the simulated preview). Select Save to send yourself the message. You should receive it in a few minutes.
14. If your message still looks good after you receive it in your inbox and open it, you're ready to publish it by selecting Go Live on the command bar.
Dynamics 365 Marketing copies your design to the email marketing service, which makes the message available for use by a customer journey (but doesn't deliver any messages yet). The go-live process also activates any dynamic code and replaces links with trackable versions that are redirected through Dynamics 365 Marketing (which identifies the recipient and logs the click). Finally, your message Status Reason is updated to Live