{"id":3287,"date":"2013-05-06T14:33:28","date_gmt":"2013-05-06T09:03:28","guid":{"rendered":"http:\/\/JitendraZaa.com\/blog\/?p=3287"},"modified":"2013-05-06T14:33:28","modified_gmt":"2013-05-06T09:03:28","slug":"extended-mail-merge-template","status":"publish","type":"post","link":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/extended-mail-merge-template\/","title":{"rendered":"Extended Mail Merge Template"},"content":{"rendered":"<p style=\"text-align: justify;\">In many cases, I have seen customer struggling with &#8220;Standard Mail Merge&#8221;\u009d functionality. I have suggested them to either use &#8220;<a title=\"Drawloop\" href=\"https:\/\/appexchange.salesforce.com\/listingDetail?listingId=a0N300000016Zn3EAE\" rel=\"nofollow\">Drawloop<\/a>&#8220;\u009d or &#8220;<a title=\"CongaMerge\" href=\"https:\/\/appexchange.salesforce.com\/listingDetail?listingId=a0N300000016b7FEAQ\" rel=\"nofollow\">Conga Composer<\/a>&#8220;\u009d however these applications are paid.<\/p>\n<p><strong>Before going ahead let&#8217;s see the drawbacks of &#8220;Standard Mail Merge&#8221;\u009d:<\/strong><\/p>\n<ol>\n<li>It runs on Client side and needs ActiveX Control<\/li>\n<li>It needs Internet Explorer<\/li>\n<li>It does not work with Office 2010, it works only for Office 2003 and 2007<\/li>\n<li>Windows 7 is not supported and causes unexpected error many times. It supports Windows XP and Windows Vista only<\/li>\n<\/ol>\n<p>The solutions to all above problem is &#8220;Extended Mail Merge (XMM)&#8221;\u009d template which is free and native Salesforce solution.<\/p>\n<p><strong>Following are the advantages of &#8220;Extended Mail Merge (XMM)&#8221;\u009d:<\/strong><\/p>\n<ol>\n<li>It runs on server side and does not require installation of any ActiveX Control<\/li>\n<li>It runs on almost al major browsers including firefox, Chrome<\/li>\n<li>It supportes Office 2007 as well as Office 2010 (document must be saved in a 97-2003 DOC format)<\/li>\n<li>We can save output into &#8220;Document&#8221;\u009d tab<\/li>\n<li>XMM can send final word document in email itself<\/li>\n<\/ol>\n<p><strong>NOTE: <\/strong>Mail Merge &amp; Extended Mail Merge uses same templates: &#8220;Setup | Communications Templates | Mail Merge Templates&#8221;<\/p>\n<p><strong>There are few limitations in XMM also like:<\/strong><\/p>\n<ol>\n<li>At a time, it can merge only 1000 records.<\/li>\n<li>Template size cannot exceed 1MB of size.<\/li>\n<li>It will access only those\u00a0fields\u00a0for which current user have access, it respects Field level security (FLS)<\/li>\n<\/ol>\n<p><strong>How to enable &#8220;Extended Mail Merge (XMM)&#8221;\u009d ?<\/strong><br \/>\nWe have to contact Salesforce to enable this feature in our Salesforce Organization.<!--more--><\/p>\n<p><strong>How to activate &#8220;Extended Mail Merge (XMM)&#8221;\u009d , once it is enabled by Salesforce?<\/strong><br \/>\nNavigate to &#8220;Setup | Customize | User Interface&#8221;\u009d and select checkbox &#8220;Activate Extended Mail Merge&#8221;\u009d. We can also select to save XMM result in Document tab as shown in below snap.<\/p>\n<figure id=\"attachment_3288\" aria-describedby=\"caption-attachment-3288\" style=\"width: 628px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2013\/05\/Insert-Field-in-Extended-Mail-Merge-Salesforce.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3288\" alt=\"Insert Field in Extended Mail Merge Salesforce\" src=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2013\/05\/Insert-Field-in-Extended-Mail-Merge-Salesforce.png?resize=628%2C300&#038;ssl=1\" width=\"628\" height=\"300\" \/><\/a><figcaption id=\"caption-attachment-3288\" class=\"wp-caption-text\">Insert Field in Extended Mail Merge Salesforce<\/figcaption><\/figure>\n<figure id=\"attachment_3289\" aria-describedby=\"caption-attachment-3289\" style=\"width: 432px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2013\/05\/Activate-Extended-Mail-Merge-User-Interface-Salesforce.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3289\" alt=\"Activate Extended Mail Merge - User Interface - Salesforce\" src=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2013\/05\/Activate-Extended-Mail-Merge-User-Interface-Salesforce.png?resize=432%2C140&#038;ssl=1\" width=\"432\" height=\"140\" \/><\/a><figcaption id=\"caption-attachment-3289\" class=\"wp-caption-text\">Activate Extended Mail Merge &#8211; User Interface &#8211; Salesforce<\/figcaption><\/figure>\n<p>Before using XMM , we have to create template in Microsoft Word. So, lets see how to create template.<\/p>\n<p>For this article, let&#8217;s say our template is going to be used by &#8220;Contact&#8221;\u009d object and content should be as simple as :<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nHello \u00abContact_FirstName\u00bb,\nPhone Number - \u00abContact_Phone\u00bb\nRegards\nShivasoft\n<\/pre>\n<p>In above paragraph, &#8220;CONTACT_Name&#8221;\u009d needs to be replaced by actual contact name. For this, we need API name of that field from Salesforce which is &#8220;Name&#8221;\u009d. Now create above template in Microsoft word and place the cursor where we want value to be appeared and navigate to &#8220;Insert | Quick Parts | Fields&#8221;\u009d.<\/p>\n<figure id=\"attachment_3288\" aria-describedby=\"caption-attachment-3288\" style=\"width: 628px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2013\/05\/Insert-Field-in-Extended-Mail-Merge-Salesforce.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3288\" alt=\"Insert Field in Extended Mail Merge Salesforce\" src=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2013\/05\/Insert-Field-in-Extended-Mail-Merge-Salesforce.png?resize=628%2C300&#038;ssl=1\" width=\"628\" height=\"300\" \/><\/a><figcaption id=\"caption-attachment-3288\" class=\"wp-caption-text\">Insert Field in Extended Mail Merge Salesforce<\/figcaption><\/figure>\n<p>New window will appear, select MergeField and enter API Name as shown in below image.<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Note :<\/strong> <\/span>While entering API name of any field, It should be prefixed by Object name and\u00a0Underscore\u00a0 . For Example, API Name in Contact Should be referred as Contact_Name. (<strong>Object_FieldAPIName<\/strong>) .<\/p>\n<figure id=\"attachment_3290\" aria-describedby=\"caption-attachment-3290\" style=\"width: 628px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2013\/05\/Insert-Field-in-Template-Salesforce.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3290\" alt=\"Insert Field in Template - Salesforce\" src=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2013\/05\/Insert-Field-in-Template-Salesforce.png?resize=628%2C327&#038;ssl=1\" width=\"628\" height=\"327\" \/><\/a><figcaption id=\"caption-attachment-3290\" class=\"wp-caption-text\">Insert Field in Template &#8211; Salesforce<\/figcaption><\/figure>\n<p>Now, go to Salesforce and navigate to &#8220;Set up | Communication Templates | Mail Merge Templates&#8221;\u009d and Upload recently created template.<\/p>\n<p>Now to check that whether template is working or not. Navigate to Contact Tab and select &#8220;Mass Mail Merge&#8221;\u009d link present at bottom.<\/p>\n<p><strong>Step 1:<\/strong><br \/>\nSelect List of Contacts for which you want to run &#8220;Mail Merge&#8221;\u009d template.<\/p>\n<p><strong>Step 2:<\/strong><br \/>\nSelect Document Types to Generate. The Supported document types are documents, envelopes and labels. You can also select if you want to Log an activity that mail merge documents were generated for those records.<\/p>\n<p><strong>Step 3:<\/strong><br \/>\nSelect Document templates to be used by &#8220;Mass Mail Merge&#8221;\u009d which we have created in this article. In this step we can select that all documents to be generated in single word document or we have to create separate word files.<br \/>\nOnce we click on finish button, we will get messag that email will be sent to email id once document is generated.<\/p>\n<figure id=\"attachment_3291\" aria-describedby=\"caption-attachment-3291\" style=\"width: 628px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2013\/05\/Extended-Mail-Merge-XMM-Confirmation-Window.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3291\" alt=\"Extended Mail Merge - XMM Confirmation Window\" src=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2013\/05\/Extended-Mail-Merge-XMM-Confirmation-Window.png?resize=628%2C163&#038;ssl=1\" width=\"628\" height=\"163\" \/><\/a><figcaption id=\"caption-attachment-3291\" class=\"wp-caption-text\">Extended Mail Merge &#8211; XMM Confirmation Window<\/figcaption><\/figure>\n<p><strong>Point to Remember:<\/strong><\/p>\n<ul>\n<li>Prefix the field label with the type of record. For example, &#8220;Account_MarketCap&#8221;\u009d for an account field named MarketCap.<\/li>\n<li>Convert all spaces to underscores. For example, a custom opportunity field named &#8220;Product ID&#8221;\u009d becomes &#8220;Opportunity_Product_ID&#8221;\u009d.<\/li>\n<\/ul>\n<p><strong>References:<\/strong><br \/>\n<a title=\"Mail Merge Documentation\" href=\"https:\/\/help.salesforce.com\/apex\/HTViewSolution?urlname=Extended-Mail-Merge-features-1327108643069&amp;language=en_US\" rel=\"nofollow\">Mail Merge Documentation<\/a><\/p>\n<p><a title=\"Using Merge Fields\" href=\"https:\/\/na1.salesforce.com\/help\/doc\/en\/salesforce_mailmerge_upload_guidelines.pdf\" rel=\"nofollow\">Read more about using Merge Fields in Mail Merge here<\/a><\/p>\n<p><iframe loading=\"lazy\" src=\"http:\/\/www.youtube.com\/embed\/cMPRw_WjviQ\" height=\"315\" width=\"560\" allowfullscreen=\"\" frameborder=\"0\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In many cases, I have seen customer struggling with &#8220;Standard Mail Merge&#8221;\u009d functionality. I have suggested them to either use &#8220;Drawloop&#8220;\u009d or &#8220;Conga Composer&#8220;\u009d however these applications are paid. Before going ahead let&#8217;s see the drawbacks of &#8220;Standard Mail Merge&#8221;\u009d: It runs on Client side and needs ActiveX Control It needs Internet Explorer It does [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"jz_research_post":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9],"tags":[331,228],"class_list":["post-3287","post","type-post","status-publish","format-standard","hentry","category-salesforce","tag-salesforce","tag-xmm"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":28,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-interview-questions\/","url_meta":{"origin":3287,"position":0},"title":"Salesforce Interview Questions &#8211; Part 1","author":"Jitendra","date":"May 6, 2010","format":false,"excerpt":"Set of most often asked questions on the salesforce.com developement","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3150,"url":"https:\/\/www.jitendrazaa.com\/blog\/java\/merge-pdf-in-salesforce-using-java-itextpdf-and-oauth-2\/","url_meta":{"origin":3287,"position":1},"title":"Merge PDF in Salesforce Using Java, ITextPDF and OAuth 2","author":"Jitendra","date":"December 9, 2012","format":false,"excerpt":"Its long time, since i wrote any article because of my busy schedule However this time i came with advance one. In this article we are going to use the J2EE (Servlet) to Merge PDF attachment inside salesforce with the help of OAuth and ITextPDF jar file. The reason of\u2026","rel":"","context":"In &quot;Apex&quot;","block_context":{"text":"Apex","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/apex\/"},"img":{"alt_text":"Create Remote Access in Salesforce.com for OAuth 2","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/12\/Create-Remote-Access-in-Salesforce.com_.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/12\/Create-Remote-Access-in-Salesforce.com_.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/12\/Create-Remote-Access-in-Salesforce.com_.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":1224,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/step-by-step-salesforce-tutorial-creating-email-template-4-of-n\/","url_meta":{"origin":3287,"position":2},"title":"Step by Step Salesforce Tutorial \u2013 Creating Email Template \u2013 4 of 6","author":"Jitendra","date":"October 9, 2010","format":false,"excerpt":"Step by Step Salesforce Tutorial \u2013 Creating Email Template \u2013 4 of n","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"Create Email Template in Salesforce","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/10\/Create-Email-Template-in-Salesforce.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":3331,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/how-to-prepare-for-dev-501-certification-salesforce\/","url_meta":{"origin":3287,"position":3},"title":"How to prepare for Dev 501 Certification &#8211; Salesforce","author":"Jitendra","date":"June 25, 2013","format":false,"excerpt":"This is first time i am going to write article on any Salesforce Certification. This time it is about \"How to Pass Salesforce Dev 501 Certification\". I have already received many request on how to prepare for this certification. Dev 501 certificate in Salesforce will validate that how comfortable you\u2026","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5953,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/sfdcrules-simple-yet-powerful-rule-engine-for-salesforce\/","url_meta":{"origin":3287,"position":4},"title":"SFDCRules &#8211; Simple yet powerful Rule Engine for Salesforce","author":"Jitendra","date":"March 28, 2017","format":false,"excerpt":"Open source project to evaluate rules in Salesforce using Apex","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"SFDC Rule Engine","src":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2017\/03\/SFDCRules.jpg?fit=1200%2C524&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2017\/03\/SFDCRules.jpg?fit=1200%2C524&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2017\/03\/SFDCRules.jpg?fit=1200%2C524&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2017\/03\/SFDCRules.jpg?fit=1200%2C524&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2017\/03\/SFDCRules.jpg?fit=1200%2C524&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":6546,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-interview-questions-part-24-person-account\/","url_meta":{"origin":3287,"position":5},"title":"Salesforce Interview Questions &#8211; Part 24 &#8211; Person Account","author":"Jitendra","date":"July 17, 2018","format":false,"excerpt":"Salesforce Interview Questions related to Person Account","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/3287","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/comments?post=3287"}],"version-history":[{"count":0,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/3287\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/media?parent=3287"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/categories?post=3287"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/tags?post=3287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}