Exercise - Customize email templates with survey variables

Completed

In this exercise, you'll create and customize an email template, including survey variables.

Important

You can complete this exercise with or without having Dynamics 365 Customer Service in your environment. However, if you want to complete task two in exercise 3, you'll need to complete these steps in an environment that also has Dynamics 365 Customer Service. You can complete these exercises in a trial or sandbox environment.

Exercise 1: Create a new project

In this exercise, you'll create a new project.

  1. Go to Dynamics 365 Customer Voice and sign in with your credentials.

  2. Select Get started.

    Screenshot of the landing page for Dynamics 365 Customer Voice and the Get started button.

  3. Select the Support project template.

    Screenshot of project template options, showing the Support project template selected.

  4. Select the Preview button, which will provide an overview of the survey that is associated with this project.

    Screenshot of the Support project template selected, with the Preview button highlighted.

  5. After you have finished reviewing the survey, select Close.

    Screenshot of a preview of the Customer service feedback survey.

  6. Select the Next button to continue.

    Screenshot of the Support project template, showing the Next button selected.

  7. From the Where would you like to create your project window, you can determine which location to add your project to. Select the See all environments link.

    Screenshot of a window where you can determine where to add a project, with the See all environments link highlighted.

  8. You will be directed to the All environments window, which provides a list of all Common Data Service environments that you have access to. Select the environment that you are using to complete this exercise. If you have access to the environment, a message will display, indicating that permission has been granted. Select the Select and close button.

    Screenshot of a list of all Common Data Service environments that you can access, with the Select and close button highlighted.

    Note

    As you use Customer Voice over time, the recent locations list will populate with the last environments that you have used. Thereafter, you can select the environment directly from this list instead.

    Screenshot of different locations where you can add the project in Dynamics 365 Customer Voice.

  9. Select the Create button. If you are unable to select the button, confirm by using the previous step and then make sure that you have one location selected.

    Screenshot showing that Customer Voice is connected to Microsoft Dynamics 365, with the Create button selected.

Exercise 2: Add survey variables

In this exercise, you'll learn how to create variables and add them to the survey.

Task 1: Create variables

In this task, you will create the variables.

  1. Select the Customization panel in the upper-right corner of the Case resolution survey in your project.

    Screenshot of the Customer service feedback survey, with the Customization panel selected.

  2. From the menu that opens, select Personalization.

    Screenshot of the Customization menu with a list of options and Personalization selected.

  3. The Personalization screen will show all variables that exist for the Case resolution survey. Select Add variable.

    Screenshot of the Personalization screen, showing the Add variable button selected.

  4. Type CaseNumber into the variable name. Make sure that you don't include a space between the two words. If you do, a message will display, stating that "Standard characters are required." Remove the space to remove the error message. Select Add variable again.

    Screenshot of a variable with the entry CaseNumber as the variable name.

  5. Type CaseTitle into the variable name. Select the Save button to add the two new variables.

    Screenshot of a list with two variables, the Add variable option, and the Save button highlighted.

    A confirmation message will display in the Personalization panel, indicating that the two variables were added.

    Screenshot of the confirmation message indicating that the two variables were added.

  6. Select the Close button to close this section.

    Screenshot of the Close button in the lower part of the Personalization panel.

  7. Select the arrow to minimize the Customization panel.

    Screenshot of the arrow to minimize the Customization panel.

You have successfully added two new variables to use in the survey.

Task 2: Add variables to the survey

In this task, you'll add variables to the survey description.

  1. Select the description of the survey to highlight the text and then delete the text.

    Screenshot of the Customer service feedback survey, with the description highlighted.

  2. Select the Variables dropdown list and then select First Name.

    Screenshot of the Variables dropdown list, with Variables > First Name selected.

  3. {{First Name}} will be added to the description. Add a comma after the variable and then add the following text: We appreciate your business. We recently closed a support ticket for you, and would appreciate your feedback on the experience. For your reference, here is your case information:

    Screenshot of the text to enter for the survey description.

  4. Select the Variables dropdown list, this time selecting Case Number. Add a hyphen and then select the Variables dropdown list again to select Case Title.

    Screenshot of the Variables dropdown list with Case Number selected.

The finished survey description should resemble the following screenshot.

Screenshot of the finished survey description.

You have successfully added variables into the survey description.

Exercise 3: Customize the email template

In this exercise, you'll learn how to customize the email template and add the survey variables to the subject and body of the email.

Task 1: Add variables to the email template

In this task, you will add variables to the email template.

  1. From the main Case resolution survey, select the Send tab from the upper left of the screen.

    Screenshot of the Case resolution survey with the Send tab highlighted.

  2. Select the Email option.

    Screenshot of the Email option selected in the Send tab of the Case resolution survey.

  3. Select the Template dropdown menu. The Support feedback template will already be selected and is the one that will display in the Email area. Select the Template dropdown menu again to close it.

    Screenshot of the Template dropdown menu with Support feedback selected.

  4. Select Subject and then select the text that is already in place. Delete the text.

    Screenshot of Subject selected with the How did it go? text highlighted.

  5. Select the Insert menu and then hover your cursor over the Personalized variables option. The list of available variables will display. Select First Name to add it to the subject.

    Screenshot of the Insert dropdown menu with Personalized variables > First Name selected.

  6. After the First Name variable, add the following text: Could you share feedback on your recent experience?

    Screenshot of the Recipients and Subject fields with Could you share feedback on your recent experience? text added.

  7. In the body of the email, select the Last Name variable and then delete it.

    Screenshot of the Support feedback survey with the Last Name variable highlighted.

  8. After the second sentence that ends with future, add the following text: We recently closed.

  9. Select the Insert menu, hover your cursor over the Personalized variables option, and then select CaseNumber.

    Screenshot of CaseNumber selected as the personalized variable.

  10. Add a hyphen and then select CaseTitle to add it as a variable as well. Your email template should resemble the following screenshot.

    Screenshot of the email template with the Begin survey button.

  11. Select the Save button in the lower part of the email template.

    Screenshot of the Save button in the email template.

A notification will display in the upper part of the screen, indicating that the template has been successfully saved.

Screenshot of the Template saved message in the Case resolution survey screen.

Task 2: Send an email with variables populated

In this task, you'll send an email with the variables populated to a recipient. To complete this task, you'll need to use an email address that you have access to.

  1. From the main Case resolution survey, select the Send tab.

    Screenshot of the Send tab highlighted in the Case resolution survey screen.

  2. Select the Email option.

    Screenshot of the Email option selected in the Send tab of the Case resolution survey screen.

  3. Select the Import contacts link in the upper right of the email template.

    Screenshot of an email template with the Import contacts link selected.

  4. Select Advanced options.

    Screenshot of the Import contacts screen with Advanced options highlighted.

  5. In the Advanced options section, you can download a template that includes all variables from the related survey. Select Download advanced template.

    Screenshot of the Download advanced template link on the Advanced options window.

  6. The CustomerVoiceSample.csv file will be downloaded. Go to your downloads folder and open the file. Fill out the fields with the email address (the one that you have access to), first name, last name, case number, and case title information.

  7. If you have access to Dynamics 365 Customer Service with the Case table, you can also complete the RegardingID and RegardingEntityName columns. If you open a case in Dynamics 365, the end of the URL will include the unique ID from the case.

    Screenshot of the URL from a web browser with the last part of the URL highlighted.

  8. Add the case ID in the RegardingID field and then type the word incident in the RegardingEntityName column.

    Screenshot of the RegardingID and RegardingEntityName columns from an Excel spreadsheet.

  9. Save the CSV file to your desktop (or any folder that you have access to).

  10. From the Import contacts screen, select the Upload button.

    Screenshot of the Upload button on the Import contacts screen.

  11. Browse to where you saved the file, select it, and then select Open from the lookup control.

    Screenshot of Microsoft Explorer with an Excel file selected and the Open button highlighted.

  12. The file will import and a notification will display to show that it was successful. The email, first name, and last name of the contact should be displayed.

    Screenshot of the File uploaded successfully message in the Import contacts screen.

  13. Select the Import button from the Import contacts screen.

    Screenshot of the Import button on the Import contacts screen.

  14. The Recipients field should show one recipient. Select the Send button from the lower part of the email.

    Screenshot of Recipients field showing one recipient.

  15. Open the inbox for the email address that you used. You should have received an email that includes the first name in the subject. The case number, and case title should also be shown. Select the Begin survey button.

    Screenshot of an email with the first name of the recipient displayed in the subject and email body.

    The survey should also show the same three variables populated in the description.

    Screenshot of the Customer service feedback survey with the description highlighted.

  16. If your import file included the RegardingID and RegardingEntityName columns, you can go to the case in Dynamics 365. The survey invitation will be displayed in the timeline on the case.

    Screenshot of a timeline from a case record with the survey invite activity highlighted.