Welcome to MSDN Blogs Sign in | Join | Help

MSCRM 4.0 Mail Merge Basics

All, this is my first blog and I am not sure if this is a good format or not. I am attempting to present the MSCRM 4.0 Mail Merge feature in a manner I hope to get you started right away.

A Little about MSCRM Mail Merge

Mail Merge in CRM was first implemented in version 3.0 and supported accounts, contacts and quotes. V3 templates existed but were difficult to work with. V3 did not support mail merge from the web client.

While MSCRM 4.0 Mail Merge is able to run on both the Outlook and the web clients, the Outlook client provides more functionality than the web client. Functionality the Outlook client provides over the web client is the ability to create activities associated with the mail merge (to help keep track of who received the merges), automatic upload or update of new or existing templates, the ability to create Quick Campaigns from the Mail Merge and the ability run Mail Merges from Quick Campaigns. These Quick Campaigns are containers for the activities created by the mail merge.

Another advantage the Outlook Client Mail Merge has over the Web Client Mail Merge is the use of a Visual Basic Macro to enable Mail Merge. Outlook Client Mail merge does not need the macro. MS Word, by default Macros are disabled and require enabling or trusting the MSCRM Mail Merge Macro.

Since the Outlook Client Mail Merge has the most functionality and is most interesting, this will be the focus of this blog.

Before you start

To start the user must have a Security Role that has the required Outlook privileges to operate the Outlook client and the ‘Mail Merge’ privilege set to a level appropriate with the level of access for the user. To use the web client on a mail merge the ‘Web Mail Merge’ privilege must also be set to the level of access for the user. While on the subject of privileges, the user should also have access to the entity for the mail merge (Accounts, Contacts, Leads, Opportunities, Quotes and Custom Entities) and any related entities that we might want to merge data from. Luckily, the MSCRM Team has some built-in Security Roles, like Marketing Manager, Sales Person, Receptionist, Customer Service Representative and Customer Service Manager, already have the settings for Mail Merge and Mail Merge Template creation.

Mail Merge Templates also require specific privileges; the Create, Read, Write, Delete, Assign and Share privileges set to a level appropriate with the level of access for the user.

Basic Outlook Mail Merge

With the exception of the first step, the steps below are intended to give the basic steps to perform an MSCRM Mail Merge from the Outlook Client, regardless of the point of invocation. For individual records, MSCRM Mail Merge can be invoked from the ‘Actions‘menu on an entity form. Sets of records returned by Advanced Find or included in a Mailing list are also points of MSCRM Mail Merge invocation.

  • Start the MSCRM Outlook client and navigate to the MSCRM Contacts page (we need a couple of contacts to start with). From the MSCRM Contacts page, select the contacts to include in the merge and click on the Mail Merge Icon (looks like a Word Symbol on a Page). This opens the Mail Merge form.

 clip_image002

  • From the Mail Merge form, select a mail merge type of Letter. Letters, E-mails, Envelopes and Labels are supported and this mail merge type corresponds to MSWord’s mail merge types, which will set for you when you enter the mail merge.
  • Select the radio button option for the ‘Organization mail merge template’ which will allow you to select the template to use. Click on the Look-Up Icon and from the Look-Up Records dialog and select a mail merge template to use for this merge.
  • Templates are either Organization (available to other users) or Personal. When saving a template from a mail merge the default is set to personal. This can be changed in the Mail Merge Template form or from the Mail Merge Template grid (Settings | Templates | Mail Merge Templates).

 clip_image004

  • At this point we can click the OK button to start the merge (opens MSWord).

          - The Merge section changes what records can be used for the merge.

          -  The Data Fields button opens the Add Columns dialog, where additional entity and related entity fields can be selected to be included in the mail merge. Note: There is a 62 field limit and some juggling may be required to uncheck fields you will not use and check fields you require.

 clip_image006

  • The first time a Mail Merge Template is opened a Macro Alert will be displayed. Set Word to allow macros to run and click on the CRM Mail Merge Icon to run the Macro.
  • After the Macro runs, Word’s ‘Select Recipients’ dialog will appear. Click the OK button to continue with Mail Merge from the Wizard located in the task pane.
  • Click ‘Next: Preview your letters’ to view the merge before printing. The ‘Preview your letters’ section has buttons that can be used to view each of the letters we are merging.

         - With the exception of Envelopes and Labels, the ‘Write your letter’ will be visible. At this point you can add text and/or additional fields to the mail merge document from the ‘More Items…’ hyperlink or from Word’s Mailing menu.

         - Mail Merge Field tags can be identified by the beginning ‘<<’ and ending ‘>>’ characters. To see field details use the Ctrl + F9 to toggle the field markers.

  • Click ‘Next: Complete the merge’ to navigate to the ‘Complete the Merge’ task pane. In the Merge section, click the ‘Print’ item to open the ‘Merge to printer’ dialog.

          - Optionally, from the Outlook Client only, the ‘Upload Template to CRM’ item should be visible. From this option, you can update the template you started with (assuming correct privileges) by clicking the ‘Yes’ button or create a new one by clicking the ‘No’ button. Cancel will stop the operation all together.

clip_image008

          - You can create a template for later use then continue with the merge. If you are creating a new document from scratch, use the Blank Document option and just write the letter, preview it with entity data and upload the template. You can then just quit word and not save changes as the changes were uploaded as a new template.

  • From the ‘Merge to printer’ dialog click the OK button to allow all selected records to be merged and to open the ‘Print’ dialog.
  • From the ‘Print’ dialog, select the appropriate printer and other printer related options. Click the OK button to open the ‘Create Activities’ dialog and start the merge.
  • Select the ‘Create Microsoft Dynamics CRM activities’ radio button and click the ‘Activities Details’ button to open the activity detail form.

 clip_image010

Note: From the ‘Create Activities’ dialog, click the OK button to print the merge without creating activities (default settings).

          - The ‘Assign activities to’ section defaults to assigning the activities to self, change to assign to owners of the records in the merge or to another user or queue.

          - The ‘Automatically close the activities as completed is set by default.

          - The ‘Create a new quick campaign’ check box will enable mail merge to create a quick campaign that will contain the mail merge activities created. A ‘Name’ for the quick campaign must be included.

  • From the ‘Activity Details’ form, change some fields on the form to suit your needs and click the OK button. This is a generic activity form and may not resemble the form for the object you are creating. The activity created will have a note tab with a hyperlink to the merge document created for future reference.

clip_image012

  • From the ‘Create Activities’ dialog, click the OK button to print the merge
  • When all printing is completed, the ‘Microsoft Dynamics CRM for Outlook dialog will appear, indicating that the mail merge is complete. Click the OK button.

 clip_image014

  • You can now close Word.

Note: Another ‘Microsoft Dynamics CRM for Outlook dialog will appear to verify you want to leave mail merge. MS Word will also display a dialog asking if you want to save changes to the current document.

 clip_image016

  • Mail Merge is now complete. You can verify the Mail Merge records by navigating to the Contacts included in the Mail Merge and clicking the History tab (if the activities were not created as completed, they will not appear in the history grid).

Conclusion

While, MSCRM Mail Merge does not have the ability to add attachments to the document you are sending, you could include some of the data you want as part of the template. Instead of an attachment you could include a URL link which is accepted by the process and makes your e-mail lighter anyway.

Arne Marquez

Published Tuesday, January 15, 2008 8:45 AM by crmblog

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# MSDN Blog Postings &raquo; MSCRM 4.0 Mail Merge Basics

Tuesday, January 15, 2008 12:34 PM by MSDN Blog Postings » MSCRM 4.0 Mail Merge Basics

# Blog &raquo; Blog Archive &raquo; MSCRM 4.0 Mail Merge Basics

Tuesday, January 15, 2008 2:26 PM by Blog » Blog Archive » MSCRM 4.0 Mail Merge Basics

# MSCRM 4.0 Mail Merge Basics

New post at blogs.msdn.com

Tuesday, January 15, 2008 3:00 PM by Windows Vista News

# re: MSCRM 4.0 Mail Merge Basics

Hi

Does CRM 4.0 allow for multiple quote products or multiple line items to be merged into a Word document in one single table.

We attempted to do this and each quote product appeared on a second page.

Thanks

Tony

Wednesday, January 16, 2008 7:14 AM by Tony Sim

# re: MSCRM 4.0 Mail Merge Basics

Tony,

Yes CRM 4.0 Mail Merge does support multiple quote products, both existing (from the product catalog) and write-in (not defined in the product catalog) products.

MSWord calls this type of merge a directory merge and before attempting to create your own merge template, you should attempt the merge using our sample "Quote for Customer" template.  With our sample template open, you can use the 'Alt + F9' key sequence to see the structure of the template.  Note: Some calculations will be required to get some of the summary fields your organization requires for the quote document.

The main difference between the directory merge and the typical letter or email merges, is the quote products are merged into a final document in MSWord's "Complete the Merge" task pane.  After the quote products are merged into the final document, this document can be printed out.

MSCRM does a good job of getting the data to MSWord for the merge, but to create the quote template (our most complex sample template), a good deal of MSWord knowlege is required.

Hope this helps out.

Arne

Wednesday, January 16, 2008 12:26 PM by Arne

# re: MSCRM 4.0 Mail Merge Basics

Hi Arne

Thanks so much for getting back to me. It's good news to hear that CRM 4.0 supports multiple quote products.

I just have to figure out how to do this. You mentioned that there is a 'Quote for customer' template.

I am not sure if I am looking in the wrong place but I assume this is the template used in your example? Is there an actual template?

Thanks again

Tony

Thursday, January 17, 2008 1:58 AM by Tony Sim

# re: MSCRM 4.0 Mail Merge Basics

Tony,

The sample templates that get installe with MSCRM 4.0 should be accessible from the 'Start with' section of the Mail Merge form.  Select the 'Organization mail merge template' radio button and click on the look-up icon to the far right.  This will bring up the Look-Up Records dialog for organizational templates.  If there are no templates, check with your system administrator.  Ask specifically for the "Quote for Customer" mail merge template.

Another method to look for the template is to Navigate to the Mail Merge Templates grid. From the MSCRM Navigation tree, first click on 'Settings', then, from the Settings page, click on 'Templates', then from the Templates page, click on Mail Merge Templates.  The default 'View' is 'My Active Mail Merge Templates'.  Change the 'View' to 'All Mail Merge Templates'.

Quotes are MSWord Directory Merge and is, in my opinion, one of the most advanced merges you could undertake.  The intent of my blog was to present the basics of mail merge from MSCRM 4.0.  Maybe this could be a future blog.

Hope this helps.

Arne

Thursday, January 17, 2008 10:34 AM by Arne

# re: MSCRM 4.0 Mail Merge Basics

One thing I have observed is if I have a CRM merge template document that is based on a (trusted) 'word template' document with macros (.dotm file), the macros in the base template document are somehow 'not enabled' after the merge is completed UNLESS one goes into the VBA editor and runs the macros from there.

Example: Create a .dotm with a macro and store it in a trusted (by word) location.

Create a CRM document in word BASED on the .dotm template above. Save the CRM document as .XML, and put it in the CRM system.

Run the mail merge on that document. When Word starts up, do the Finish merge and use the Edit in new document' option so you have a merged document that you want to run the macro against (to fill in more data for example).

This generated document will be correctly based on the .DOTM word template, and the macros appear in the macro list, but if you run the macros, NOTHING HAPPENS (no message and no result of the macro).

If you start the VBA editor, you can see the macro. If you run the macro from the VBA editor, it runs successfully.

A mystery to me. Posted in case you can share some light on this.

Tuesday, January 22, 2008 9:12 AM by kadorken

# re: MSCRM 4.0 Mail Merge Basics

I'm trying to use mail merge in CRM4 for the first time using the web application rather than outlook client, with CRM3 we used an add-in and I'm trying to determine if we still need this. For example, I'd like to send a letter to a customer quoting information populated directly from the customers case.  Do you know if this is possible in CRM4 web application please and if so how I might go about it?

Thanks

Sarah

Friday, January 25, 2008 7:38 AM by Sarah

# MSCRM 4.0 Mail Merge Basics- Web Client Macros

The case of the mystery macro… The macro is used for the MSCRM web client implementation of Mail Merge, if you use the Outlook client, you do not need to worry about the macro settings.  We support Mail Merge from Office 2003 and 2007.  Since the macro handling is different between the two versions, it is easy to see there can be some confusion.  Personally, I prefer maintaining a high level of security for macros, which means I use the default settings in Word.

In Word 2007, when opening the MSCRM Mail Merge document, there is a security warning that appears below the ribbon.  I click the ‘Options’ button and when the ‘Microsoft Office Security Options’ dialog appears I simply select the ‘Enable this Content’ option and click the ‘OK’ button.  After the macro is enabled, you can click on the ‘CRM’ icon in the ‘Add-Ins’ tab on Word’s ribbon.

In Word 2003, a ‘Security Warning’ dialog appears.  I check the ‘Always trust macros from this publisher’, which enables the ‘Enable Macros’ button which allows the content to be used.  After the macro is enabled, you can then run the macro by clicking the ‘CRM’ icon in Word’s tool bar.

Since there are so many macro options, it is difficult to say what the behavior of the macro is with other settings, but this method works.  Hope this helps.

Arne

Wednesday, January 30, 2008 1:16 PM by Arne

# MSCRM 4.0 Mail Merge Basics- Support for Cases

Sorry to say, there is no Mail Merge support for MSCRM Cases.  Might be an interesting add for the next version of MSCRM.  For the everyday user, new in MSCRM 4.0 is workflow. I am not a workflow  expert, so I will not be able to give step by step instructions.

One of the cool things about workflow is that you can send email based on text you enter and you have access to the MSCRM Object Fields.  You might try creating a workflow that is triggered by hand or when a Case is created.  These workflows, depending on your security role can be created to be used only by you or others in your organization.

Hope this helps.

Arne

Wednesday, January 30, 2008 2:13 PM by Arne

# re: MSCRM 4.0 Mail Merge Basics

Hi Arne,

       Thanks for your response, it's a pity there is no mail merge support for MSCRM Cases. I would be delighted if we could use email instead but I'm afraid some of our customers insist on letters about their cases and the bespoke system we are replacing auto-generates these letters and needless to say the users want the new system (based on CRM 4) to do the same or better.

I'd be happy to hear any other ideas for how to tackle this?

Thanks

Sarah

Tuesday, February 05, 2008 6:59 AM by Sarah

# re: MSCRM 4.0 Mail Merge Basics

Hi Arne

I can't seem to get it to work,when merging from CRM 4.0 til Word 2003. Word cannot find the datasource and i order to continue, I have to click on remove mergeinformation (my version is in danish, so I'm guessing here). I get a CRM toolbar button and acces to the fields fra CRM, but I don't get to choose to save the merge as an activity. Any suggestions?

Regards, Jens

Thursday, February 14, 2008 7:31 AM by Jens Nielsen

# re: MSCRM 4.0 Mail Merge Basics

Hi Arne

Does this apply to Word 2003? I can't get it to work the way you describe.

Question: When you create a template in Word, save as .xml and import into CRM, you assign is to an entity. How do you get the CRM-fields you've referenced in the template to actually connect to the template? I hope You won't say by hand, each time...

Regards, Jens

Thursday, February 14, 2008 7:39 AM by Jens Nielsen

# re: MSCRM 4.0 Mail Merge Basics

Hi Arne,

Could you confirm a coupke of things

1. Activities can only created when you merge using Outlook rather than the web client

2. The merged documents is not stored with the activity there unless the user saves it somewhere we do not know what was in the dcoument

Thanks

Joe

Tuesday, February 26, 2008 8:24 AM by Joe

# re: MSCRM 4.0 Mail Merge Basics

Hi Arne,

I've been trying to make this work for a month w/o success.  I can't create a new Word Template.  It seems that adding data fields breaks the CRM XML comment that is opened with Word for the CRM macro to use.  If I create a template using the defaults, it works.  Have you seen this?  I've got data posted on the CRM discussions group.

Wednesday, February 27, 2008 3:49 PM by Jeffrey

# Printing Quote for customer

Arne had a great post before covering the basic of mail merge in CRM. Check it out if you are new to

Wednesday, March 12, 2008 12:21 PM by Microsoft Dynamics CRM Team Blog

# re: MSCRM 4.0 Mail Merge Basics

For some sample CRM Quote templates based on the ones shipping with MS CRM 4.0, check out: http://www.bizitpro.com/weblog/entry/152/

Enjoy

Monday, April 07, 2008 1:23 PM by Steve Noe

# re: MSCRM 4.0 Mail Merge Basics

Does crm 4.0 mail merge work with word 2002(XP)?

Friday, July 18, 2008 8:26 AM by SJ

# Printing quote for customer

Struggling with a pop up blocker not (definately turned off) allowing me to create a new quote template.

Any ideas?

Monday, July 28, 2008 11:25 AM by microtima variable message signs

# re: MSCRM 4.0 Mail Merge Basics

Arne,

I am looking at the Quote for Customer template to understand how to create a template that displays multiple records on a single page.  

There is a line in the template {If {MERGEFIELD "LastItem"} = 1.  I assume this is a flag that tells the doc when to stop creating quote detail lines and put in the summary.  I don't see that attribute on either the quote or quotedetail entity, though.  Where is it getting set?

Tuesday, August 05, 2008 11:25 PM by James

# re: MSCRM 4.0 Mail Merge Basics

Hi,

Starting from "Quote for Customer" I could create a new template, pun our logo and so on...everything looks nice.

I wanted to create a new template and associate it with the "Sales Order" Entity, but I couldn't do that. Is there any way to create such template? Our customer wants to print his orders using the same method as for quotes.

Thanks.

Friday, August 08, 2008 3:19 AM by Adi

# re: MSCRM 4.0 Mail Merge Basics

I actually managed to create a mail merge template from scratch and use it properly. It's not that easy so I wrote about it here: http://crm4dummies.blogspot.com/2008/08/how-to-actually-use-microsoft-dynamics.html. I hope it helps some of the guys that are experiencing troubles with this feature.

Monday, August 18, 2008 9:11 AM by Sergio Coelho

# re: MSCRM 4.0 Mail Merge Basics

I notice that when a mailmerge is done, each recipient has a copy of the document attached to the activity as a note. When I sent out my newsletter to 500 customers, 500 file attachments were created... Can we do mailmerge without saving the document to each record?

Al

Tuesday, August 19, 2008 2:28 PM by ragnarok89

# re: MSCRM 4.0 Mail Merge Basics

Are there any other examples of Quotation templates.

Tuesday, August 26, 2008 12:07 PM by Sean Du Toit

# re: MSCRM 4.0 Mail Merge Basics

Anyone knows how to do mail merge from 1 CRM contact to multiple selected templates at 1 go?

Tuesday, September 02, 2008 11:26 PM by Sindy Wong

# re: MSCRM 4.0 Mail Merge Basics

I am using CRM 4.0. When I attempt to send newsletter (quick campaign) by mail via mail merge to the

marketing list, suddenly there is a pop up error saying :

"A SQL Server error occurred. Try this action again. If the problem

continues, check the Microsoft Dynamics CRM Community for solutions or

contact your organization's Microsoft Dynamics CRM Administrator. Finally,

you can contact Microsoft Support. Do you want to send the e-mail? If you

click Yes, the email will be sent out, but no corresponding activity will

be created in Microsoft Dynamics CRM."

Would you all please tell what it might be wrong?! I have been tryig to look

for the solution on google but there's no really correct solution.

Thanks before.

regards, Esar

Monday, September 15, 2008 11:50 PM by dolfi besari

# re: MSCRM 4.0 Mail Merge Basics

Dear All,

I am using CRM 4.0. When I attempt to send newsletter via email to the

marketing list, suddenly there is a pop up error saying :

"A SQL Server error occurred. Try this action again. If the problem

continues, check the Microsoft Dynamics CRM Community for solutions or

contact your organization's Microsoft Dynamics CRM Administrator. Finally,

you can contact Microsoft Support. Do you want to send the e-mail? If you

click Yes, the email will be sent out, but no corresponding activity will

be created in Microsoft Dynamics CRM."

Would you all please tell what it might be wrong?! I have been tryig to look

for the solution on google but there's no really correct solution.

Thanks before.

regards, Esar

Tuesday, September 16, 2008 1:50 AM by dolfi besari

# re: MSCRM 4.0 Mail Merge Basics

Arne

This was a great help with mail merge for Quotes. I was able to modify the quote template for our needs and resave as a new template. I'm wondering can you do a mail merge anyway under order?

Thank you,

kristy

Tuesday, October 21, 2008 4:53 PM by kristy

# re: MSCRM 4.0 Mail Merge Basics

I'm trying to create a simple template (letter) via the outlook client. Everthing works on machines with Office 2007. However on the PC's with Office 2003 basic edition only the last step "upload templete to CRM" fails. The pop-up screen does not appear and templete will not be uploaded to CRM.

It seems that the "Upload to CRM" step does not work with Word 2003 but it does with Office 2007

Thursday, February 26, 2009 6:48 AM by Chrus

# re: MSCRM 4.0 Mail Merge Basics

There is a way to enable mail merge for standard entities that do not have it out of the box (e.g. Cases). See this post for details:

http://blogs.msdn.com/crm/archive/2008/03/14/mail-merge-and-more.aspx

Thursday, March 12, 2009 6:44 PM by Sergei

# re: MSCRM 4.0 Mail Merge Basics

Is anyone getting a different outcome from a quote template, depending on if you are using the outlook client or the web client??

Tuesday, March 24, 2009 2:25 PM by Mike Markowitz

# re: MSCRM 4.0 Mail Merge Basics

Does anyone have a suggestion if I've deleted the shipped "Quote for Customer" template?  I was trying to create a new one on my own.

Friday, March 27, 2009 6:14 PM by Ian

# CRM Online: Reporting Options

Microsoft Dynamics CRM Online is a fantastic CRM platform for most small medium businesses - it is so

Tuesday, April 14, 2009 8:08 PM by Workopia Microsoft CRM & CRM Online Blog

# re: MSCRM 4.0 Mail Merge Basics

Hi all, is it possible to speed the mail merge process up and skip the six step process. Can we not just except the default's and create the letters? Thanks

Tuesday, April 21, 2009 5:25 AM by Guy

# re: MSCRM 4.0 Mail Merge Basics

Hi all,

I've created a Word Mail Merge for a client who has Office 2003.

When I test it with my own Word 2007 it works fine, but when I test it with Word 2003 the 'Create Activities' dialog does not appear, and therefore the activity isn't recorded on the entity...

The Mail Merge works fine all the way, just not the 'Create Activities' dialog.

It's the same for the client :-(

Can anyone confirm if the Mail Merge Create Activity dialog doesn't work with Office 2003?

Or is it something else??

Tuesday, May 05, 2009 9:23 AM by Tomas Lollike

# re: MSCRM 4.0 Mail Merge Basics

We use custom code to send mails from CRM environment.

TargetSendFromTemplateEmail myTargetSendFromTemplateEmail = new TargetSendFromTemplateEmail();

                           myTargetSendFromTemplateEmail.Email = myEmail;                            

                           SendEmailFromTemplateRequest mySendEmailFromTmpRequest = new SendEmailFromTemplateRequest();

                          mySendEmailFromTmpRequest.Target = myTargetSendFromTemplateEmail;

                           mySendEmailFromTmpRequest.RegardingId = guidRegardingObjectid;

             mySendEmailFromTmpRequest.RegardingType = "new_course";

-- IMPORTANT --                     mySendEmailFromTmpRequest.TemplateId = guidMailMergeid;

-- IMPORTANT --                    

but mySendEmailFromTmpRequest.TemplateId just accepts mail tamplate and not mail merge template.

any idea how to accomplish it on this or another way ?

Thursday, May 21, 2009 2:06 PM by Alex

# re: MSCRM 4.0 Mail Merge Basics

MSCRM really needs a better mailing list manager, that would add huge value to the marketing module

stefan

Friday, May 22, 2009 8:10 AM by decatec

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker