Welcome to MSDN Blogs Sign in | Join | Help

Microsoft Dynamics CRM Online Team Blog

This blog is focused on Microsoft Dynamics CRM Online (crm.dynamics.com).

News

  • The views expressed in this blog are those of the individual and do not necessarily represent those of Microsoft. This information is provided by way of general information only and should not be relied on without obtaining independent expert advice. These postings are provided "AS IS" with no warranties and confer no rights. You assume all risk for your use.
Auto-unsubscribe in CRM Online

In Microsoft Dynamics CRM there is a feature to automatically set the Do Not Email flag for a contact if the click on an Unsubscribe link in a CRM generated email.  In order to enable this functionality, navigate to Settings > Administration > System Settings.  Click on the Marketing tab and select Yes for the two options in the last section and indicate an unsubscribe template as shown below.
Auto-unsubscribe feature

Recently I had a customer who informed me that this does not work in CRM Online.  So I decided to test.  In order to test this functionality I started a mail merge from a contact record in CRM.
Mail Merge from Actions menu

I merged to Email and selected and Organizational mail merge template.
Mail Merge options

Start the Word mail merge process by confirming the recipients.  Click OK.Word mail merge

Click on Step 1 of 3 to Preview the merge.  If you have multiple recipients you can scroll through them to confirm accuracy.Preview mail merge

Click on Step 2 of 3 to Complete the merge and click on Electronic Mail.  Add a subject line for the emails and click OK.Email result

In the Create CRM activities dialog window, click on the second option to Create Microsoft Dynamics CRM activities and click on the checkbox to include an Unsubscribe link in the email.Create CRM activities

Click OK and complete the merge.
Finish merge

The resultant email is displayed below (note the fancy new O14 UI).  I clicked on the unsubscribe link and the following email was created.
Mail merged email resultunsubscribe back to CRM

I sent the email and the received email was automatically tracked in CRM (since it was generated in CRM) under the contact record it was regarding.
auto-tracked email response unsubscribe response in CRM history

So since the unsubscribe email was received the Do Not Allow email flag should be set but as shown below is not.Do Not Allow email not set

So to resolve this issue I created a simple workflow that runs when an Email is created and checks to see if the description contains “UNSUBSCRIBE”.  If it does it will send the Unsubscribe acknowledgement email template to the contact and update the Email and Bulk Email flags to Do Not Allow.
Set unsubscribe WF
Set email response propertiesContact...Set Properties

So I created another mail merge (and this time chose the Happy Birthday template) and clicked on the unsubscribe link.Second email merge

The response email was automatically tracked in CRM (again because it originated from CRM).
Unsubscribe response tracked in CRM

The workflow ran automatically and update the contact record to Do Not Allow Emails or Bulk Emails and sent the unsubscribe acknowledgement to the contact.
Do Not Allow email flags set

I have posted this workflow here so you can download and import into your CRM Online organization.

- Eric Boocock

Posted: Friday, July 03, 2009 10:58 AM by Eric Boocock

Comments

No Comments

Anonymous comments are disabled
Page view tracker