﻿<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>CRM MVP Connection</title>
    <description>Microsoft CRM MVP Matt Wittemann shares his insights into the inner workings of Microsoft Dynamics CRM with valuable articles about development, customization, power-user tips, and administration.</description>
    <link>http://prod1.si-sv1740.com/crmblog/Home/tabid/866/BlogId/15/Default.aspx</link>
    <language>en-US</language>
    <webMaster>brent.eicher@customer-connect.com</webMaster>
    <pubDate>Tue, 06 Jan 2009 17:01:08 GMT</pubDate>
    <lastBuildDate>Tue, 06 Jan 2009 17:01:08 GMT</lastBuildDate>
    <docs>http://backend.userland.com/rss</docs>
    <generator>Blog RSS Generator Version 3.4.0.39853</generator>
    <item>
      <title>Add a "Copy Address To Clipboard" Button to Your Contact Form</title>
      <description>&lt;p&gt;When working with Contact records in Microsoft Dynamics CRM, you might find it frustrating if someone asks you to send them the address of a particular contact. You either have to re-type it or copy it line by line. To save yourself the headache, use the ISVConfig customizations in CRM 3.0 or CRM 4.0 to add a button to the Contact form that lets you copy the address to the clipboard. The example below illustrates how to do this for the Contact.&lt;/p&gt;
&lt;p&gt;1. In the CRM Customizations area, go to "Export Customizations"&lt;/p&gt;
&lt;p&gt;2. Export the ISVConfig.xml file and save this file. Make a copy for backup.&lt;/p&gt;
&lt;p&gt;3. Edit the XML in Notepad or Visual Studio. Place the following code between the &lt;Entities&gt;&lt;/Entities&gt; tags:&lt;/p&gt;
&lt;p&gt;&lt;hr /&gt;
&lt;/p&gt;
&lt;p&gt;&lt;Entity name="contact"&gt;&lt;br /&gt;
   &lt;MenuBar&gt;&lt;br /&gt;
            &lt;!-- Custom Menus that you may add --&gt;&lt;br /&gt;
            &lt;CustomMenus /&gt;&lt;br /&gt;
          &lt;/MenuBar&gt;&lt;br /&gt;
&lt;ToolBar ValidForCreate="1" ValidForUpdate="1"&gt;&lt;br /&gt;
            &lt;Button JavaScript="var texttocopy;&lt;br /&gt;
var AddrL2;&lt;br /&gt;
if(!IsNull(crmForm.all.address1_line2.DataValue))&lt;br /&gt;
{&lt;br /&gt;
AddrL2 = ' ' + crmForm.all.address1_line2.DataValue + '\n';&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
AddrL2 = '&lt;/p&gt;
&lt;p&gt;';&lt;br /&gt;
}&lt;br /&gt;
try&lt;br /&gt;
{&lt;br /&gt;
texttocopy = crmForm.all.firstname.DataValue + ' ';&lt;br /&gt;
texttocopy += crmForm.all.lastname.DataValue + '\n';&lt;br /&gt;
texttocopy += crmForm.all.jobtitle.DataValue + '\n';&lt;br /&gt;
texttocopy +=&lt;/p&gt;
&lt;p&gt;crmForm.all.parentcustomerid.DataValue[0].name + '\n';texttocopy += crmForm.all.address1_line1.DataValue + '\n';&lt;br /&gt;
texttocopy += AddrL2;texttocopy += crmForm.all.address1_city.DataValue&lt;/p&gt;
&lt;p&gt;+ ', ' + crmForm.all.address1_stateorprovince.DataValue + '  '  + crmForm.all.address1_postalcode.DataValue + '\n';window.clipboardData.setData('Text',texttocopy);alert('Address&lt;/p&gt;
&lt;p&gt;Copied to Clipboard');}catch(e){alert('Error');}"&gt;&lt;br /&gt;
              &lt;Titles&gt;&lt;br /&gt;
                &lt;Title LCID="1033" Text="Copy Address" /&gt;&lt;br /&gt;
              &lt;/Titles&gt;&lt;br /&gt;
              &lt;ToolTips&gt;&lt;br /&gt;
                &lt;ToolTip LCID="1033" Text="Copy Address to Clipboard" /&gt;&lt;br /&gt;
              &lt;/ToolTips&gt;&lt;br /&gt;
            &lt;/Button&gt;&lt;br /&gt;
          &lt;/ToolBar&gt;&lt;br /&gt;
        &lt;/Entity&gt;&lt;/p&gt;
&lt;p&gt;&lt;hr /&gt;
&lt;/p&gt;
&lt;p&gt;4. Import the ISVConfig.xml file back into CRM.&lt;/p&gt;
&lt;p&gt;5. Refresh your CRM in the browser, open a Contact record, and test your button out.&lt;/p&gt;
&lt;p&gt;Happy copying and pasting!&lt;/p&gt;
&lt;p&gt;Tip: You may need to go to the Settings &gt; Administration &gt; System Settings &gt; Customizations tab in CRM 4.0 to indicate that you want the ISVConfig customizations to show in the web and/or Outlook clients. In 3.0 you need to edit a config file on the CRM server (more info about this is in the SDK).&lt;/p&gt;</description>
      <link>http://prod1.si-sv1740.com/crmblog/Home/tabid/866/EntryID/46/Default.aspx</link>
      <comments>http://prod1.si-sv1740.com/crmblog/Home/tabid/866/EntryID/46/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://prod1.si-sv1740.com/Default.aspx?tabid=866&amp;EntryID=46</guid>
      <pubDate>Thu, 12 Jun 2008 17:06:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://prod1.si-sv1740.com/DesktopModules/Blog/Trackback.aspx?id=46</trackback:ping>
    </item>
  </channel>
</rss>