<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US"><title type="html">I am the techie</title><subtitle type="html">This blog is for folks who want to learn about Microsoft Dynamics CRM and for people who are passionate in learning development techniques.</subtitle><id>http://blogs.technet.com/b/tvishnun1/atom.aspx</id><link rel="alternate" type="text/html" href="http://blogs.technet.com/b/tvishnun1/" /><link rel="self" type="application/atom+xml" href="http://blogs.technet.com/b/tvishnun1/atom.aspx" /><generator uri="http://telligent.com" version="5.6.50428.7875">Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><updated>2012-02-06T14:15:00Z</updated><entry><title>Visual C++ Runtime Failed while configuring Reporting Extensions for CRM 2011 with SQL 2012</title><link rel="alternate" type="text/html" href="http://blogs.technet.com/b/tvishnun1/archive/2013/03/02/reporting-extensions-for-dynamics-crm-2011-with-sql-2012.aspx" /><id>http://blogs.technet.com/b/tvishnun1/archive/2013/03/02/reporting-extensions-for-dynamics-crm-2011-with-sql-2012.aspx</id><published>2013-03-02T15:54:00Z</published><updated>2013-03-02T15:54:00Z</updated><content type="html">&lt;p&gt;Hi Folks,&lt;/p&gt;
&lt;p&gt;With the latest update of CRM 2011 we have compatibility with SQL 2012 server. I have got a chance to install CRM application on top of SQL 2012. If you are successful in installing CRM then trying to configure Reporting Extensions for CRM you might encounter the following error:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;"Installation of Microsoft Visual C++ Runtime failed. Exit code: 5100"&lt;/p&gt;
&lt;p&gt;After we get this error it is our usual understanding that Visual C++ Runtime is failed to install. If you can already see the Visual C++ runtime in the programs and features of your computer then that is the one which is installed by SQL server 2012. If your CRM setup which is running is an old one it doesn't support the latest version of C++ runtime.&lt;/p&gt;
&lt;p&gt;To avoid this you can go download the latest CRM setup from the following location:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.microsoft.com/en-us/download/details.aspx?id=27822"&gt;http://www.microsoft.com/en-us/download/details.aspx?id=27822&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After downloading the file and extracting everything you will be able to see a folder named: "SrsDataConnector". This will help you in installing and configuring Reporting Extensions for CRM 2011 with SQL 2012.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hope this helps!!!&lt;/p&gt;
&lt;p&gt;Enjoy reporting with Dynamics CRM with SQL 2012.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3556040" width="1" height="1"&gt;</content><author><name>turlapativishnu</name><uri>http://blogs.technet.com/vishnu.t_4000_live.in/ProfileUrlRedirect.ashx</uri></author><category term="Microsoft Dynamics CRM 2011" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/Microsoft+Dynamics+CRM+2011/" /><category term="CRM 2011" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/CRM+2011/" /><category term="Vishnu Turlapati" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/Vishnu+Turlapati/" /><category term="Visual C++ Runtime" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/Visual+C_2B002B00_+Runtime/" /><category term="CRM 2011 with SQL 2012" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/CRM+2011+with+SQL+2012/" /><category term="Error: 5100" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/Error_3A00_+5100/" /></entry><entry><title>Simplified connection to Microsoft Dynamics CRM 2011</title><link rel="alternate" type="text/html" href="http://blogs.technet.com/b/tvishnun1/archive/2013/01/27/simplified-connection-to-microsoft-dynamics-crm-2011.aspx" /><id>http://blogs.technet.com/b/tvishnun1/archive/2013/01/27/simplified-connection-to-microsoft-dynamics-crm-2011.aspx</id><published>2013-01-27T06:46:00Z</published><updated>2013-01-27T06:46:00Z</updated><content type="html">&lt;p&gt;Hello Folks,&lt;/p&gt;
&lt;p&gt;After a long time I am coming up with a new post. I have been researching a lot on pushing a new post into my blog. Finally I have decided to write about the simplified connection to Microsoft Dynamics CRM 2011.&lt;/p&gt;
&lt;p&gt;If you have downloaded the latest CRM sdk the connection to CRM application is simplified.&amp;nbsp;Now you just have to pass your&amp;nbsp;Connection String parameters in your configuration file. In your code we can leverage the connection string and connect to CRM application. Following are the steps which you need to leverage the simplified connection string.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;1) Add a config file in your custom application with the following values:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;code class="csharp"&gt;&amp;lt;?xml version="1.0"?&amp;gt;&lt;br /&gt; &amp;lt;configuration&amp;gt;&lt;br /&gt; &amp;lt;connectionStrings&amp;gt;&lt;br /&gt; &amp;lt;!-- Online using Office 365 --&amp;gt;&lt;br /&gt; &amp;lt;!-- &amp;lt;add name="Server=CRM Online, organization=contoso, user=someone"&lt;br /&gt; connectionString="Url=https://contoso.crm.dynamics.com; Username=someone@contoso.onmicrosoft.com; Password=password;"/&amp;gt; --&amp;gt;&lt;br /&gt; &lt;br /&gt; &amp;lt;!-- Online using Windows Live ID --&amp;gt;&lt;br /&gt; &amp;lt;!-- &amp;lt;add name="Server=CRM Online, organization=contoso, user=someone@hotmail.com"&lt;br /&gt; connectionString="Url=https://contoso.crm.dynamics.com; Username=someone@hotmail.com; Password=password; DeviceID=11hfn41bbqrg580vyvoea05abc; DevicePassword=fuqNIlx%e$.l*+ax_#8O4abc;"/&amp;gt;--&amp;gt;&lt;br /&gt; &lt;br /&gt; &amp;lt;!-- On-premises with provided user credentials --&amp;gt;&lt;br /&gt; &amp;lt;!-- &amp;lt;add name="Server=myserver, organization=AdventureWorksCycle, user=administrator"&lt;br /&gt; connectionString="Url=http://myserver/AdventureWorksCycle; Domain=mydomain; Username=administrator; Password=password;"/&amp;gt; --&amp;gt;&lt;br /&gt; &lt;br /&gt; &amp;lt;!-- On-premises using Windows integrated security --&amp;gt;&lt;br /&gt; &amp;lt;!--&amp;lt;add name="Server=myserver, organization=AdventureWorksCycle"&lt;br /&gt; connectionString="Url=http://myserver/AdventureWorksCycle;"/&amp;gt;--&amp;gt;&lt;br /&gt; &lt;br /&gt; &amp;lt;!-- On-Premises (IFD) with claims --&amp;gt;&lt;br /&gt; &amp;lt;!--&amp;lt;add name="Server=litware.com, organization=contoso, user=someone@litware.com"&lt;br /&gt; connectionString="Url=https://contoso.litware.com; Username=someone@litware.com; Password=password;"/&amp;gt;--&amp;gt;&lt;br /&gt; &amp;lt;/connectionStrings&amp;gt;&lt;br /&gt; &amp;lt;startup&amp;gt;&lt;br /&gt; &amp;lt;supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/&amp;gt;&lt;br /&gt; &amp;lt;/startup&amp;gt;&lt;br /&gt; &amp;lt;/configuration&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code class="csharp"&gt;2) This connection string can be leveraged either for all types of CRM connections. If you are connecting to CRM online, you need to get the Device ID and Device Password. They can be generated using the Device Registration tool available in your CRM SDK. This tool is available in the tools folder of CRM sdk named "Device Registration". To register your device and generate the Device credentials following is the command Prompt:&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;deviceregistration.exe /operation:Register&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3) After passing all the configuration details in your application. You need to leverage them in your code as shown in the below code:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre class="scroll"&gt;&lt;code class="csharp"&gt; // Obtain connection configuration information for the Microsoft Dynamics&lt;br /&gt; // CRM organization web service.&lt;br /&gt; String connectionString = GetServiceConfiguration();&lt;/code&gt;&lt;/pre&gt;
&lt;pre class="scroll"&gt;&lt;code class="csharp"&gt;&lt;/code&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre class="scroll"&gt;&lt;code class="csharp"&gt;4) Now let us see the GetServiceConfiguration function definition:&lt;/code&gt;&lt;/pre&gt;
&lt;pre class="scroll"&gt;&lt;code class="csharp"&gt;/// &amp;lt;summary&amp;gt;&lt;br /&gt; /// Gets web service connection information from the app.config file.&lt;br /&gt; /// If there is more than one available, the user is prompted to select&lt;br /&gt; /// the desired connection configuration by name.&lt;br /&gt; /// &amp;lt;/summary&amp;gt;&lt;br /&gt; /// &amp;lt;returns&amp;gt;A string containing web service connection configuration information.&amp;lt;/returns&amp;gt;&lt;br /&gt; private static String GetServiceConfiguration()&lt;br /&gt; {&lt;br /&gt; // Get available connection strings from app.config.&lt;br /&gt; int count = ConfigurationManager.ConnectionStrings.Count;&lt;br /&gt; &lt;br /&gt; // Create a filter list of connection strings so that we have a list of valid&lt;br /&gt; // connection strings for Microsoft Dynamics CRM only.&lt;br /&gt; List&amp;lt;KeyValuePair&amp;lt;String, String&amp;gt;&amp;gt; filteredConnectionStrings = &lt;br /&gt; new List&amp;lt;KeyValuePair&amp;lt;String, String&amp;gt;&amp;gt;();&lt;br /&gt; &lt;br /&gt; for (int a = 0; a &amp;lt; count; a++)&lt;br /&gt; {&lt;br /&gt; if (isValidConnectionString(ConfigurationManager.ConnectionStrings[a].ConnectionString))&lt;br /&gt; filteredConnectionStrings.Add&lt;br /&gt; (new KeyValuePair&amp;lt;string, string&amp;gt;&lt;br /&gt; (ConfigurationManager.ConnectionStrings[a].Name,&lt;br /&gt; ConfigurationManager.ConnectionStrings[a].ConnectionString));&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt; // No valid connections strings found. Write out and error message.&lt;br /&gt; if (filteredConnectionStrings.Count == 0)&lt;br /&gt; {&lt;br /&gt; Console.WriteLine("An app.config file containing at least one valid Microsoft Dynamics CRM " +&lt;br /&gt; "connection string configuration must exist in the run-time folder.");&lt;br /&gt; Console.WriteLine("\nThere are several commented out example connection strings in " +&lt;br /&gt; "the provided app.config file. Uncomment one of them and modify the string according " +&lt;br /&gt; "to your Microsoft Dynamics CRM installation. Then re-run the sample.");&lt;br /&gt; return null;&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt; // If one valid connection string is found, use that.&lt;br /&gt; if (filteredConnectionStrings.Count == 1)&lt;br /&gt; {&lt;br /&gt; return filteredConnectionStrings[0].Value;&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt; // If more than one valid connection string is found, let the user decide which to use.&lt;br /&gt; if (filteredConnectionStrings.Count &amp;gt; 1)&lt;br /&gt; {&lt;br /&gt; Console.WriteLine("The following connections are available:");&lt;br /&gt; Console.WriteLine("------------------------------------------------");&lt;br /&gt; &lt;br /&gt; for (int i = 0; i &amp;lt; filteredConnectionStrings.Count; i++)&lt;br /&gt; {&lt;br /&gt; Console.Write("\n({0}) {1}\t",&lt;br /&gt; i + 1, filteredConnectionStrings[i].Key);&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt; Console.WriteLine();&lt;br /&gt; &lt;br /&gt; Console.Write("\nType the number of the connection to use (1-{0}) [{0}] : ", &lt;br /&gt; filteredConnectionStrings.Count);&lt;br /&gt; String input = Console.ReadLine();&lt;br /&gt; int configNumber;&lt;br /&gt; if (input == String.Empty) input = filteredConnectionStrings.Count.ToString();&lt;br /&gt; if (!Int32.TryParse(input, out configNumber) || configNumber &amp;gt; count || &lt;br /&gt; configNumber == 0)&lt;br /&gt; {&lt;br /&gt; Console.WriteLine("Option not valid.");&lt;br /&gt; return null;&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt; return filteredConnectionStrings[configNumber - 1].Value;&lt;br /&gt; &lt;br /&gt; }&lt;br /&gt; return null;&lt;br /&gt; &lt;br /&gt; }&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class="scroll"&gt;&lt;code class="csharp"&gt;5) This connection string can be leveraged to connect to CRM application. Following is the code to leverage the connection string and establish a connection to CRM.&lt;/code&gt;&lt;/pre&gt;
&lt;pre class="scroll"&gt;&lt;code class="csharp"&gt; // Establish a connection to the organization web service using CrmConnection.&lt;br /&gt; Microsoft.Xrm.Client.CrmConnection connection = CrmConnection.Parse (connectionString);&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; 6) Now as we have established the connection we can leverage it to create records into CRM application. Following is the code to achieve that:&lt;/p&gt;
&lt;pre class="scroll"&gt;&lt;code class="csharp"&gt;private OrganizationService _orgService;&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; // Obtain an organization service proxy.&lt;br /&gt; // The using statement assures that the service proxy will be properly disposed.&lt;br /&gt; using (_orgService = new OrganizationService(connection) )&lt;br /&gt; {&lt;br /&gt; Entity account = new Entity("account");&lt;br /&gt; account["name"] = "Contoso";&lt;br /&gt; _orgService.Create(account);&lt;br /&gt; }&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;
&lt;pre class="scroll"&gt;&lt;code class="csharp"&gt;That is it!!! Now connecting to CRM is quite easy. Enjoy!!!&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre class="scroll"&gt;&lt;br /&gt; &lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre class="scroll"&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre class="scroll"&gt;&lt;code class="csharp"&gt;&lt;/code&gt;&amp;nbsp;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3548588" width="1" height="1"&gt;</content><author><name>turlapativishnu</name><uri>http://blogs.technet.com/vishnu.t_4000_live.in/ProfileUrlRedirect.ashx</uri></author><category term="Microsoft Dynamics CRM 2011" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/Microsoft+Dynamics+CRM+2011/" /><category term="CRM 2011" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/CRM+2011/" /><category term="Vishnu Turlapati" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/Vishnu+Turlapati/" /><category term="Importing records in CRM 2011" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/Importing+records+in+CRM+2011/" /><category term="Simplified connection in Dynamics CRM" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/Simplified+connection+in+Dynamics+CRM/" /><category term="Connection String in CRM 2011" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/Connection+String+in+CRM+2011/" /></entry><entry><title>Creating records on behalf of another user in Microsoft Dynamics CRM 2011</title><link rel="alternate" type="text/html" href="http://blogs.technet.com/b/tvishnun1/archive/2012/08/06/creating-records-on-behalf-of-another-user-in-microsoft-dynamics-crm-2011.aspx" /><id>http://blogs.technet.com/b/tvishnun1/archive/2012/08/06/creating-records-on-behalf-of-another-user-in-microsoft-dynamics-crm-2011.aspx</id><published>2012-08-06T16:45:00Z</published><updated>2012-08-06T16:45:00Z</updated><content type="html">&lt;p&gt;This post will help you guys to create records on behalf of another user in CRM 2011. Well are you thinking what is the advantage of doing this and how different is this from normal import?&lt;/p&gt;
&lt;p&gt;Certainly there is an advantage if you want to create records on behalf of another user. The created by field will be updated by the name of the user whom you want to use instead of using your own name. This leads to the concept of impersonation in CRM 2011.&lt;/p&gt;
&lt;pre class="scroll"&gt;&lt;code class="csharp"&gt;using (_serviceProxy = new OrganizationServiceProxy(serverConfig.OrganizationUri,&lt;br /&gt; serverConfig.HomeRealmUri,&lt;br /&gt; serverConfig.Credentials,&lt;br /&gt; serverConfig.DeviceCredentials))&lt;br /&gt; {&lt;br /&gt; // This statement is required to enable early-bound type support.&lt;br /&gt; _serviceProxy.ServiceConfiguration.CurrentServiceEndpoint.Behaviors.Add(new ProxyTypesBehavior());&lt;br /&gt; &lt;br /&gt; // Retrieve the system user ID of the user to impersonate.&lt;br /&gt; OrganizationServiceContext orgContext = new OrganizationServiceContext(_serviceProxy);&lt;br /&gt; _userId = (from user in orgContext.CreateQuery&amp;lt;SystemUser&amp;gt;()&lt;br /&gt; where user.FullName == "FirstName LastName"&lt;br /&gt; select user.SystemUserId.Value).FirstOrDefault();&lt;br /&gt; &lt;br /&gt; // To impersonate another user, set the OrganizationServiceProxy.CallerId&lt;br /&gt; // property to the ID of the other user.&lt;br /&gt; _serviceProxy.CallerId = _userId;&lt;br /&gt; Entity contact = new Entity("contact");&lt;br /&gt; contact["firstname"] = "Vishnu";&lt;br /&gt; contact["lastname"] = "Nandan";&lt;br /&gt; Guid contactId = _serviceProxy.Create(contact);&lt;br /&gt; }&lt;/code&gt;&lt;/pre&gt;
&lt;pre class="scroll"&gt;&lt;code class="csharp"&gt; &lt;/code&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre class="scroll"&gt;&lt;code class="csharp"&gt;In this code we will update the callerid in the serviceProxy with the userid that you want to impersonate. &lt;/code&gt;&lt;/pre&gt;
&lt;pre class="scroll"&gt;&lt;code class="csharp"&gt;&lt;/code&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre class="scroll"&gt;&lt;code class="csharp"&gt;This will help you to create records on behalf of another user. &lt;/code&gt;&lt;/pre&gt;
&lt;pre class="scroll"&gt;&lt;code class="csharp"&gt;Cheers!!!&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3512779" width="1" height="1"&gt;</content><author><name>turlapativishnu</name><uri>http://blogs.technet.com/vishnu.t_4000_live.in/ProfileUrlRedirect.ashx</uri></author><category term="Microsoft Dynamics CRM 2011" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/Microsoft+Dynamics+CRM+2011/" /><category term="Update createdby in CRM 2011." scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/Update+createdby+in+CRM+2011_2E00_/" /><category term="Impersonation in CRM 2011" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/Impersonation+in+CRM+2011/" /><category term="Importing records in CRM 2011" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/Importing+records+in+CRM+2011/" /></entry><entry><title>Generating early bound class using crmsvcutil in Microsoft Dynamics CRM 2011 online.</title><link rel="alternate" type="text/html" href="http://blogs.technet.com/b/tvishnun1/archive/2012/07/02/generating-early-bound-class-using-crmsvcutil-in-microsoft-dynamics-crm-2011-online.aspx" /><id>http://blogs.technet.com/b/tvishnun1/archive/2012/07/02/generating-early-bound-class-using-crmsvcutil-in-microsoft-dynamics-crm-2011-online.aspx</id><published>2012-07-02T16:50:00Z</published><updated>2012-07-02T16:50:00Z</updated><content type="html">&lt;p&gt;Trying to generate an early bound class in CRM 2011 online?? If yes is the answer this post will definitely help you out in meeting the requirement.&lt;/p&gt;
&lt;p&gt;1) Before generating an early bound class you will have to make sure that the device is registered to connect to online CRM.&lt;/p&gt;
&lt;p&gt;2) To make your device registered to connect to online CRM. You can just navigate to the Device Registration folder which is present in the tools folder of the SDK. In the Device registration folder just navigate to the bin/debug folder where you can find the deviceregistration.exe. Make sure you copy the path of the device registration application.&lt;/p&gt;
&lt;p&gt;3) Now open the command prompt and paste the path to navigate to the location where DeviceRegistration.exe is present.&lt;/p&gt;
&lt;p&gt;4) To register the device write the following command in the command prompt.&lt;/p&gt;
&lt;p&gt;deviceregistration.exe /operation:Register&lt;/p&gt;
&lt;p&gt;5) This will display the Device ID and Device Password which will be helpful for you to generate an early bound class in CRM online.&lt;/p&gt;
&lt;p&gt;Note: If the device is already registered the application will throw an error saying the device is already registered.&lt;/p&gt;
&lt;p&gt;6) After registering your device you can go ahead and generate an early bound class. To generate an early bound class you just have to navigate to the bin folder in the sdk. In the bin folder you have the crmsvcutil.exe file which will help you in generating the early bound class.&lt;/p&gt;
&lt;p&gt;7) Now navigate to the crmsvcutil.exe folder location in the command prompt. In this location you can write the following code to generate the early bound class.&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #333300;"&gt;CrmSvcUtil.exe /url:https://dev.crm.dynamics.com/XRMServices/2011/Organization.svc /out: C:\GeneratedCode.cs /username:USERNAME&amp;nbsp;/password: "********"&amp;nbsp;/ deviceid:&amp;rdquo;11mqqaku9s6usrnh52gn4fm75o&amp;rdquo; /devicepasswordXZo!O35,JF^/`n#tKO^iwj/B&amp;rdquo;&lt;/span&gt;)&lt;/p&gt;
&lt;p&gt;8) In the above command url will be the url of the Organization.svc available in your developer resources in CRM. out will be the name of the output file name which is going to be generated. username and password will be the credentials which you will connect with CRM. DeviceId and DevicePassword will be the one which you have generated in our earlier step.&lt;/p&gt;
&lt;p&gt;9) After running this command you will be able to see the code being generated.&lt;/p&gt;
&lt;p&gt;Cheers!!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3507030" width="1" height="1"&gt;</content><author><name>turlapativishnu</name><uri>http://blogs.technet.com/vishnu.t_4000_live.in/ProfileUrlRedirect.ashx</uri></author><category term="Microsoft Dynamics CRM 2011" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/Microsoft+Dynamics+CRM+2011/" /><category term="Vishnu Turlapati" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/Vishnu+Turlapati/" /><category term="crmsvcutil" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/crmsvcutil/" /></entry><entry><title>Windows Identity Foundation in Windows 8</title><link rel="alternate" type="text/html" href="http://blogs.technet.com/b/tvishnun1/archive/2012/06/12/windows-identity-foundation-in-windows-8.aspx" /><id>http://blogs.technet.com/b/tvishnun1/archive/2012/06/12/windows-identity-foundation-in-windows-8.aspx</id><published>2012-06-12T16:13:00Z</published><updated>2012-06-12T16:13:00Z</updated><content type="html">&lt;p&gt;Are you not able to find the Windows Identity Foundation in your Windows 8 Operating System?? If yes is the answer this post will help you in locating the Windows Identity Foundation in your machine.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Following are the steps to get the Windows Identity Foundation&lt;/p&gt;
&lt;p&gt;1) Navigate to Control Panel you will be able to find the window as shown in the below screen.&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;2) Now click on Programs and Features to Turn Windows Features on or off.&lt;/p&gt;
&lt;p&gt;3) In the programs and features screen you will be able to Turn Windows Features on or off as shown in the below screenshot.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-57/1777.Untitled.png"&gt;&lt;img alt="" src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-57/1777.Untitled.png" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;4) After clicking on the Windows Features on or off in the left navigation pane. You can see one new window being opened as shown in the below screenshot which will help you in adding the Windows Identity Foundation to your machine.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-57/1212.Untitled.png"&gt;&lt;img alt="" src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-57/1212.Untitled.png" border="0" /&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;5) After clicking on OK you can see the status of the installation and after that you are done.&lt;/p&gt;
&lt;p&gt;6) You are now done with adding Windows Identity Foundation in your machine.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3503455" width="1" height="1"&gt;</content><author><name>turlapativishnu</name><uri>http://blogs.technet.com/vishnu.t_4000_live.in/ProfileUrlRedirect.ashx</uri></author><category term="Windows Identity Foundation" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/Windows+Identity+Foundation/" /><category term="Windows 8" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/Windows+8/" /><category term="Vishnu Turlapati" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/Vishnu+Turlapati/" /></entry><entry><title>Creating custom screensaver in Windows</title><link rel="alternate" type="text/html" href="http://blogs.technet.com/b/tvishnun1/archive/2012/06/03/create-your-custom-screensaver.aspx" /><id>http://blogs.technet.com/b/tvishnun1/archive/2012/06/03/create-your-custom-screensaver.aspx</id><published>2012-06-02T19:52:00Z</published><updated>2012-06-02T19:52:00Z</updated><content type="html">&lt;p&gt;Tired of the normal screensavers running in your machine?? Want to create your own screensaver?? If you are still thinking of how to do it. This post will help you in meeting the requirement.&lt;/p&gt;
&lt;p&gt;Requirements:&lt;/p&gt;
&lt;p&gt;Visual Studio 2010&lt;/p&gt;
&lt;p&gt;Windows Operating System.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1) Open your visual studio and create a new project. In your installed templates look for Windows Form Application and click on OK.&lt;/p&gt;
&lt;p&gt;2) Rename the form as per your need let us say screensaver&lt;/p&gt;
&lt;p&gt;3) In the form designer you can go ahead and add the controls as per your requirement. In this sample we will just add one label, timer control.&lt;/p&gt;
&lt;p&gt;4) In the main method you should ensure that we get parameters for the main function as shown in the below code.&lt;/p&gt;
&lt;pre class="scroll"&gt;&lt;code class="csharp"&gt;static void Main(string[] args) &lt;br /&gt; {&lt;br /&gt; if (args.Length &amp;gt; 0)&lt;br /&gt; {&lt;br /&gt; if (args[0].ToLower().Trim().Substring(0,2) == "/c")&lt;br /&gt; {&lt;br /&gt; MessageBox.Show("No parameters are passed");&lt;br /&gt; }&lt;br /&gt; else if (args[0].ToLower() == "/s")&lt;br /&gt; {&lt;br /&gt; for (int i = Screen.AllScreens.GetLowerBound(0); i &amp;lt;= Screen.AllScreens.GetUpperBound(0); i++) &lt;br /&gt; System.Windows.Forms.Application.Run(new ScreenSaverForm(i)); &lt;br /&gt; }&lt;br /&gt; }&lt;br /&gt; else&lt;br /&gt; {&lt;br /&gt; for (int i = Screen.AllScreens.GetLowerBound(0); i &amp;lt;= Screen.AllScreens.GetUpperBound(0); i++) &lt;br /&gt; System.Windows.Forms.Application.Run(new ScreenSaverForm(i)); &lt;br /&gt; }&lt;br /&gt; }&lt;/code&gt;&lt;/pre&gt;
&lt;pre class="scroll"&gt;&lt;code class="csharp"&gt;5) After making modification in the main method. We should copy the initialize component in the designer.cs file. &lt;/code&gt;&lt;/pre&gt;
&lt;pre class="scroll"&gt;&lt;code class="csharp"&gt;6) Now delete the designer.cs file and paste the initialize component method form1.cs/screensaver.cs file which you have used. &lt;/code&gt;&lt;/pre&gt;
&lt;pre class="scroll"&gt;&lt;code class="csharp"&gt;7) In the screensaver.cs/form1.cs file you can paste the following code.&lt;/code&gt;&lt;/pre&gt;
&lt;pre class="scroll"&gt;&lt;code class="csharp"&gt;using System;&lt;br /&gt; using System.Collections.Generic;&lt;br /&gt; using System.ComponentModel;&lt;br /&gt; using System.Data;&lt;br /&gt; using System.Drawing;&lt;br /&gt; using System.Linq;&lt;br /&gt; using System.Text;&lt;br /&gt; using System.Windows.Forms;&lt;br /&gt; &lt;br /&gt; namespace NewScreenSaver&lt;br /&gt; {&lt;br /&gt; public partial class ScreenSaver : Form&lt;br /&gt; {&lt;br /&gt; &lt;br /&gt; private System.ComponentModel.IContainer components;&lt;br /&gt; private Label label1;&lt;br /&gt; private Timer timer2;&lt;br /&gt; &lt;br /&gt; private Point MouseXY; &lt;br /&gt; private int ScreenNumber;&lt;br /&gt; private int xPos = 0, YPos = 0;&lt;br /&gt; private ImageList imageList1;&lt;br /&gt; private Button button1;&lt;br /&gt; public string mode = "LR";&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; public ScreenSaver(int i)&lt;br /&gt; {&lt;br /&gt; InitializeComponent();&lt;br /&gt; ScreenNumber = i;&lt;br /&gt; &lt;br /&gt; }&lt;br /&gt; &lt;br /&gt; protected override void Dispose(bool disposing)&lt;br /&gt; {&lt;br /&gt; if (disposing)&lt;br /&gt; {&lt;br /&gt; if (components != null)&lt;br /&gt; {&lt;br /&gt; components.Dispose();&lt;br /&gt; }&lt;br /&gt; }&lt;br /&gt; base.Dispose(disposing);&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt; private void ScreenSaver_Load(object sender, EventArgs e)&lt;br /&gt; { &lt;br /&gt; xPos = label1.Location.X;&lt;br /&gt; YPos = label1.Location.Y;&lt;br /&gt; mode = "LR";&lt;br /&gt; timer2.Start();&lt;br /&gt; &lt;br /&gt; this.Bounds = Screen.AllScreens[ScreenNumber].Bounds;&lt;br /&gt; Cursor.Hide();&lt;br /&gt; TopMost = true;&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt; private void OnMouseEvent(object sender, System.Windows.Forms.MouseEventArgs e)&lt;br /&gt; {&lt;br /&gt; if (!MouseXY.IsEmpty)&lt;br /&gt; {&lt;br /&gt; if (MouseXY != new Point(e.X, e.Y))&lt;br /&gt; Close();&lt;br /&gt; if (e.Clicks &amp;gt; 0)&lt;br /&gt; Close();&lt;br /&gt; }&lt;br /&gt; MouseXY = new Point(e.X, e.Y);&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt; private void ScreenSaver_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)&lt;br /&gt; {&lt;br /&gt; Close();&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt; #region Windows Form Designer generated code&lt;br /&gt; /// &amp;lt;summary&amp;gt;&lt;br /&gt; /// Required method for Designer support - do not modify&lt;br /&gt; /// the contents of this method with the code editor.&lt;br /&gt; /// &amp;lt;/summary&amp;gt;&lt;br /&gt; private void InitializeComponent()&lt;br /&gt; {&lt;br /&gt; this.components = new System.ComponentModel.Container();&lt;br /&gt; this.label1 = new System.Windows.Forms.Label();&lt;br /&gt; this.timer2 = new System.Windows.Forms.Timer(this.components);&lt;br /&gt; this.imageList1 = new System.Windows.Forms.ImageList(this.components);&lt;br /&gt; this.button1 = new System.Windows.Forms.Button();&lt;br /&gt; this.SuspendLayout();&lt;br /&gt; // &lt;br /&gt; // label1&lt;br /&gt; // &lt;br /&gt; this.label1.AutoSize = true;&lt;br /&gt; this.label1.BackColor = System.Drawing.Color.Silver;&lt;br /&gt; this.label1.Font = new System.Drawing.Font("Vivaldi", 100F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));&lt;br /&gt; this.label1.ForeColor = System.Drawing.SystemColors.MenuHighlight;&lt;br /&gt; this.label1.Location = new System.Drawing.Point(31, 9);&lt;br /&gt; this.label1.Name = "label1";&lt;br /&gt; this.label1.Size = new System.Drawing.Size(894, 159);&lt;br /&gt; this.label1.TabIndex = 0;&lt;br /&gt; this.label1.Text = "My Screensaver.";&lt;br /&gt; // &lt;br /&gt; // timer2&lt;br /&gt; // &lt;br /&gt; this.timer2.Tick += new System.EventHandler(this.timer2_Tick);&lt;br /&gt; // &lt;br /&gt; // imageList1&lt;br /&gt; // &lt;br /&gt; this.imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;&lt;br /&gt; this.imageList1.ImageSize = new System.Drawing.Size(16, 16);&lt;br /&gt; this.imageList1.TransparentColor = System.Drawing.Color.Transparent;&lt;br /&gt; // &lt;br /&gt; // button1&lt;br /&gt; // &lt;br /&gt; this.button1.Location = new System.Drawing.Point(39, 17);&lt;br /&gt; this.button1.Name = "button1";&lt;br /&gt; this.button1.Size = new System.Drawing.Size(75, 23);&lt;br /&gt; this.button1.TabIndex = 1;&lt;br /&gt; this.button1.Text = "button1";&lt;br /&gt; this.button1.UseVisualStyleBackColor = true;&lt;br /&gt; // &lt;br /&gt; // ScreenSaver&lt;br /&gt; // &lt;br /&gt; this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);&lt;br /&gt; this.BackColor = System.Drawing.Color.HotPink;&lt;br /&gt; this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;&lt;br /&gt; this.ClientSize = new System.Drawing.Size(995, 551);&lt;br /&gt; this.Controls.Add(this.button1);&lt;br /&gt; this.Controls.Add(this.label1);&lt;br /&gt; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;&lt;br /&gt; this.Name = "ScreenSaver";&lt;br /&gt; this.Text = "ScreenSaver";&lt;br /&gt; this.TransparencyKey = System.Drawing.Color.Red;&lt;br /&gt; this.Load += new System.EventHandler(this.ScreenSaver_Load);&lt;br /&gt; this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ScreenSaver_KeyDown);&lt;br /&gt; this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.OnMouseEvent);&lt;br /&gt; this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.OnMouseEvent);&lt;br /&gt; this.ResumeLayout(false);&lt;br /&gt; this.PerformLayout();&lt;br /&gt; &lt;br /&gt; }&lt;br /&gt; #endregion&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; private void timer2_Tick(object sender, EventArgs e)&lt;br /&gt; {&lt;br /&gt; if (this.Width == xPos)&lt;br /&gt; {&lt;br /&gt; //repeat marquee&lt;br /&gt; this.label1.Location = new System.Drawing.Point(0, YPos);&lt;br /&gt; xPos = 0;&lt;br /&gt; }&lt;br /&gt; else&lt;br /&gt; {&lt;br /&gt; this.label1.Location = new System.Drawing.Point(xPos, YPos);&lt;br /&gt; xPos += 2;&lt;br /&gt; } &lt;br /&gt; } &lt;br /&gt; }&lt;br /&gt; }&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;
&lt;pre class="scroll"&gt;&lt;code class="csharp"&gt;8) In the above code the initialize component will be the same as the one which you have copied from your designer.cs file. &lt;/code&gt;&lt;/pre&gt;
&lt;pre class="scroll"&gt;&lt;code class="csharp"&gt;9) After making all the modifications build your application. After building your application you can go to the exe file located in the debug/release folder. &lt;/code&gt;&lt;/pre&gt;
&lt;pre class="scroll"&gt;&lt;code class="csharp"&gt;10) Rename the exe file to scr. &lt;/code&gt;&lt;/pre&gt;
&lt;pre class="scroll"&gt;&lt;code class="csharp"&gt;11) After renaming the file you can go ahead and right click the file and click on install.&lt;/code&gt;&lt;/pre&gt;
&lt;pre class="scroll"&gt;&lt;code class="csharp"&gt;&lt;/code&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre class="scroll"&gt;&lt;code class="csharp"&gt;Cheers!! now you will be able to see your screensaver file.&lt;/code&gt;&lt;/pre&gt;
&lt;pre class="scroll"&gt;&lt;code class="csharp"&gt;&lt;/code&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre class="scroll"&gt;&lt;code class="csharp"&gt;Note: This code is just for testing purpose and should be not be used in your normal working environment. &lt;/code&gt;&lt;/pre&gt;
&lt;pre class="scroll"&gt;&lt;code class="csharp"&gt;&lt;/code&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre class="scroll"&gt;&lt;code class="csharp"&gt;&lt;/code&gt;&amp;nbsp;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3501744" width="1" height="1"&gt;</content><author><name>turlapativishnu</name><uri>http://blogs.technet.com/vishnu.t_4000_live.in/ProfileUrlRedirect.ashx</uri></author><category term="Windows 8" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/Windows+8/" /><category term="Vishnu Turlapati" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/Vishnu+Turlapati/" /></entry><entry><title>Dynamic Option Sets in Microsoft Dynamics CRM 2011.</title><link rel="alternate" type="text/html" href="http://blogs.technet.com/b/tvishnun1/archive/2012/04/07/dynamic-option-sets-in-microsoft-dynamics-crm-2011.aspx" /><id>http://blogs.technet.com/b/tvishnun1/archive/2012/04/07/dynamic-option-sets-in-microsoft-dynamics-crm-2011.aspx</id><published>2012-04-07T06:39:00Z</published><updated>2012-04-07T06:39:00Z</updated><content type="html">&lt;p&gt;Ever tried selecting a value in an option set depending on the option selected in other option set? If you are&amp;nbsp;still thinking you missed this in your&amp;nbsp;experience with CRM 2011 this blog post helps you&amp;nbsp;in meeting the requirement.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Requirement:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Imagine you have got two option set values and based on one option set&amp;nbsp;value you should&amp;nbsp;selected other option set value. Many people might know how to write a simple javascript to achieve the requirement but the challenge lies is to select dynamic value based on a condition.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What will you learn from this article?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;1) Learn how to write javascript web resource.&lt;/p&gt;
&lt;p&gt;2) Learn how to select dynamic value based on the selection in picklist.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Steps to be followed:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;1) Click on Customization - Customize the system - Expand the entities and click on the case entity as shown in the below figure.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-57/3566.Capture.PNG"&gt;&lt;img alt="" src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-57/3566.Capture.PNG" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;2) Open the main form which will open the following screen.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-57/2158.Capture.PNG"&gt;&lt;img alt="" src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-57/2158.Capture.PNG" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;3) Now our target is to select value in the priority based on the case type value selected.&lt;/p&gt;
&lt;p&gt;4) To achieve this you can go ahead and hard code values as needed but the challenge comes when a new field is added in the option sets and the new values have to again be hard coded in the script.&lt;/p&gt;
&lt;p&gt;5) To have a workaround for this we will create a mappings XML file which will check the value present in the first option set and map the value accordingly in the new option set. Following is the mappings file for the same.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;code class="csharp"&gt;&amp;lt;caseStageReository&amp;gt;&lt;br /&gt; &lt;br /&gt; &amp;lt;caseStage StageValue="1" StatusValue="1"/&amp;gt;&lt;br /&gt; &amp;lt;caseStage StageValue="2" StatusValue="1"/&amp;gt;&lt;br /&gt; &amp;lt;caseStage StageValue="3" StatusValue="1"/&amp;gt; &lt;br /&gt; &amp;lt;caseStage StageValue="4" StatusValue="2"/&amp;gt;&lt;br /&gt; &lt;br /&gt; &amp;lt;/caseStageRepository&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;6) In this XML file StageValue is the optionset value of the case type and StatusValue is the optionset value of the priority. Now whenever a new option set value is added you can go ahead and add one more line in the mappings file.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;7) Now that we have created a xml file we will place this xml file as a webresource. To do this you can go ahead and create a new web resources by opening the default solution as shown in the following figure.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-57/1588.Capture.PNG"&gt;&lt;img alt="" src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-57/1588.Capture.PNG" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;8) After clicking on the web resources you can go ahead and click on new web resource and select the type of the web resource as Data(XML). In the text editor just copy and paste the mappings file which you have created. Make sure you note the web resource url to use that in our code.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;9) After creating the web resource our target is to make the requirement alive. To achieve this we have to add javascript on the onchange event of the case type field as shown in the figure.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-57/1172.Capture.PNG"&gt;&lt;img alt="" src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-57/1172.Capture.PNG" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;10) Double click on the case type field and enter the following code in the onchange event.&lt;/p&gt;
&lt;pre class="scroll"&gt;&lt;code class="js"&gt;// JScript source code &lt;br /&gt; function onchange() &lt;br /&gt; { &lt;br /&gt; debugger; &lt;br /&gt; var xmlDoc = new ActiveXObject("MSXML.DOMDocument"); &lt;br /&gt; &lt;br /&gt; xmlDoc.async = "false"; &lt;br /&gt; &lt;br /&gt; //Loading the mappings XML web resource file. &lt;br /&gt; &lt;br /&gt; xmlDoc.load("https://orgname.crm.dynamics.com//WebResources/new_Mappings"); &lt;br /&gt; &lt;br /&gt; //Getting the initial case stage repository. &lt;br /&gt; var caseStageRepository = &lt;br /&gt; xmlDoc.getElementsByTagName('caseStage'); &lt;br /&gt; &lt;br /&gt; //var stages = &lt;br /&gt; caseStageRepository.childNodes(); &lt;br /&gt; &lt;br /&gt; //Get the case &lt;br /&gt; stage repository count. &lt;br /&gt; var stageCount = &lt;br /&gt; caseStageRepository.length; &lt;br /&gt; &lt;br /&gt; //Get the case type value. &lt;br /&gt; var stageValue = Xrm.Page.getAttribute('casetypecode').getSelectedOption().value; &lt;br /&gt; &lt;br /&gt; //Loop through each value in the mappings file to ensure &lt;br /&gt; for (var i = 0; i &amp;lt; stageCount; i++) &lt;br /&gt; { &lt;br /&gt; if (caseStageRepository[i].getAttribute('StageValue') == &lt;br /&gt; stageValue) &lt;br /&gt; { &lt;br /&gt; var statevalue = caseStageRepository[i].getAttribute('StatusValue'); &lt;br /&gt; &lt;br /&gt; Xrm.Page.getAttribute('prioritycode').setValue(statevalue); &lt;br /&gt; &lt;br /&gt; Xrm.Page.ui.controls.get('prioritycode').setDisabled(true); &lt;br /&gt; &lt;br /&gt; break; &lt;br /&gt; } &lt;br /&gt; } &lt;br /&gt; }&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;
&lt;pre class="scroll"&gt;&lt;code class="js"&gt;11) This will meet the given requirement. Cheers!!!&lt;br /&gt; &lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3490826" width="1" height="1"&gt;</content><author><name>turlapativishnu</name><uri>http://blogs.technet.com/vishnu.t_4000_live.in/ProfileUrlRedirect.ashx</uri></author><category term="Microsoft Dynamics CRM 2011" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/Microsoft+Dynamics+CRM+2011/" /><category term="CRM 2011" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/CRM+2011/" /><category term="Vishnu Turlapati" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/Vishnu+Turlapati/" /></entry><entry><title>Adding checkbox in MS CRM ribbon</title><link rel="alternate" type="text/html" href="http://blogs.technet.com/b/tvishnun1/archive/2012/02/22/adding-checkbox-in-ms-crm-ribbon.aspx" /><id>http://blogs.technet.com/b/tvishnun1/archive/2012/02/22/adding-checkbox-in-ms-crm-ribbon.aspx</id><published>2012-02-22T16:27:00Z</published><updated>2012-02-22T16:27:00Z</updated><content type="html">&lt;p&gt;Ever tried adding a checkbox in the CRM ribbon form? This post will be helpful for that requirement.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Requirement:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;a)&amp;nbsp; Adding a checkbox in the contact entity in CRM form ribbon.&lt;/p&gt;
&lt;p&gt;b)&amp;nbsp;&amp;nbsp;An action will be triggered when the checkbox is checked in the ribbon form.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Prerequisites:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;a)&amp;nbsp;Solution needs to have the a javascript web resource&lt;/p&gt;
&lt;p&gt;&amp;nbsp;i)&amp;nbsp; The name of the javascript web resource is&amp;nbsp;sample_Trigger&amp;nbsp;which will trigger when the checkbox is checked. Following is the function which you can write in the javascript file.&lt;/p&gt;
&lt;p&gt;Function trigger()&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert("Check box is checked");&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Steps to achieve the requirement:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;1)&amp;nbsp;&amp;nbsp;Navigate to Settings- Solutions and click on new solution which will open a new window as shown in the below figure&lt;b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&amp;nbsp;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-57/1323.Untitled.png"&gt;&lt;img alt="" src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-57/1323.Untitled.png" border="0" /&gt;&lt;/a&gt;&lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2) Click on the save button and add the existing contact entity which will add the contact entity. If you want to import the solution back into the same organization then you can include missing required components. Other component which you should add for this solution is a javascript file of name &amp;lsquo;sample_Trigger&amp;rsquo; as shown in the below figure.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-57/5226.Capture.PNG"&gt;&lt;img alt="" src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-57/5226.Capture.PNG" border="0" /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3)&amp;nbsp;After adding the required entities into the solution export the solution to make modifications as per the requirement. This will open a compressed file which includes three xml files Content_Types.xml, customizations.xml, solution.xml and a webresources folder.&lt;/p&gt;
&lt;p&gt;4) Our aim is to do some custom action in the form ribbon. In order to achieve that requirement we need to modify the customizations.xml file. Modify the ribbondiffxml tab by replacing it with the following code.&lt;/p&gt;
&lt;p&gt;&amp;lt;RibbonDiffXml&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CustomActions&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CustomAction Id="MyISV.contact.grid.trigger.CustomAction" Location="Mscrm.HomepageGrid.contact.MainTab.Collaborate.Controls._children" Sequence="41"&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CommandUIDefinition&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CheckBox Command="MyISV.contact.form.trigger.Command" Id="MyISV.contact.form.trigger.Button" LabelText="$LocLabels:MyISV.contact.trigger.LabelText" TemplateAlias="o2" ToolTipDescription="$LocLabels:MyISV.contact.trigger.ToolTip" ToolTipTitle="$LocLabels:MyISV.contact.trigger.LabelText" /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/CommandUIDefinition&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/CustomAction&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CustomAction Id="MyISV.contact.form.trigger.CustomAction" Location="Mscrm.Form.contact.MainTab.Collaborate.Controls._children" Sequence="33"&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CommandUIDefinition&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CheckBox Command="MyISV.contact.form.trigger.Command" Id="MyISV.contact.form.trigger.Button" LabelText="$LocLabels:MyISV.contact.trigger.LabelText" TemplateAlias="o2" ToolTipDescription="$LocLabels:MyISV.contact.trigger.ToolTip" ToolTipTitle="$LocLabels:MyISV.contact.trigger.LabelText" /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/CommandUIDefinition&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/CustomAction&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/CustomActions&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Templates&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;RibbonTemplates Id="Mscrm.Templates"&amp;gt;&amp;lt;/RibbonTemplates&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Templates&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CommandDefinitions&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CommandDefinition Id="MyISV.contact.grid.trigger.Command"&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;EnableRules&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;EnableRule Id="MyISV.contact.WebClient.EnableRule" /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;EnableRule Id="MyISV.contact.grid.OneSelected.EnableRule" /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/EnableRules&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;DisplayRules&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;DisplayRule Id="MyISV.contact.WebClient.DisplayRule" /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/DisplayRules&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Actions&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;JavaScriptFunction Library="$webresource:sample_Trigger" FunctionName="trigger" /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Actions&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/CommandDefinition&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CommandDefinition Id="MyISV.contact.form.trigger.Command"&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;EnableRules&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;EnableRule Id="MyISV.contact.WebClient.EnableRule" /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;EnableRule Id="MyISV.contact.form.NotNew.EnableRule" /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/EnableRules&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;DisplayRules&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;DisplayRule Id="MyISV.contact.form.FormStateNotNew.DisplayRule" /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;DisplayRule Id="MyISV.contact.WebClient.DisplayRule" /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/DisplayRules&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Actions&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;JavaScriptFunction Library="$webresource:sample_Trigger" FunctionName="trigger" /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Actions&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/CommandDefinition&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/CommandDefinitions&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;RuleDefinitions&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TabDisplayRules /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;DisplayRules&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;DisplayRule Id="MyISV.contact.form.FormStateNotNew.DisplayRule"&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;FormStateRule State="Create" InvertResult="true" /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/DisplayRule&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;DisplayRule Id="MyISV.contact.WebClient.DisplayRule"&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CrmClientTypeRule Type="Web" /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/DisplayRule&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/DisplayRules&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;EnableRules&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;EnableRule Id="MyISV.contact.WebClient.EnableRule"&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CrmClientTypeRule Type="Web" /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/EnableRule&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;EnableRule Id="MyISV.contact.form.NotNew.EnableRule"&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;FormStateRule State="Create" InvertResult="true" /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/EnableRule&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;EnableRule Id="MyISV.contact.grid.OneSelected.EnableRule"&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;SelectionCountRule AppliesTo="SelectedEntity" Maximum="1" Minimum="1" /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/EnableRule&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/EnableRules&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/RuleDefinitions&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;LocLabels&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;LocLabel Id="MyISV.contact.trigger.LabelText"&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Titles&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Title languagecode="1033" description="Trigger an action" /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Titles&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/LocLabel&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;LocLabel Id="MyISV.contact.trigger.ToolTip"&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Titles&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Title languagecode="1033" description="Trigger an action" /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Titles&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/LocLabel&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/LocLabels&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/RibbonDiffXml&amp;gt;&lt;/p&gt;
&lt;p&gt;5) After making modifications in the customizations.xml file compress the "Customizations.xml", "Solutions.xml", "Content-Types.xml" and the Webresources folder which includes the javascript file sample_trigger. Import the compressed zip file back into the CRM organization and publish all the customizations.&lt;/p&gt;
&lt;p&gt;6) This will create a checkbox in the form ribbon and trigger an action when the checkbox is checked.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: Calibri; font-size: small;" face="Calibri" size="3"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3482530" width="1" height="1"&gt;</content><author><name>turlapativishnu</name><uri>http://blogs.technet.com/vishnu.t_4000_live.in/ProfileUrlRedirect.ashx</uri></author><category term="Microsoft Dynamics CRM 2011" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/Microsoft+Dynamics+CRM+2011/" /><category term="CRM 2011" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/CRM+2011/" /><category term="Vishnu Turlapati" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/Vishnu+Turlapati/" /></entry><entry><title>Hiding the secured key symbol for a secured field.</title><link rel="alternate" type="text/html" href="http://blogs.technet.com/b/tvishnun1/archive/2012/02/20/hiding-the-secured-key-symbol-for-a-secured-field.aspx" /><id>http://blogs.technet.com/b/tvishnun1/archive/2012/02/20/hiding-the-secured-key-symbol-for-a-secured-field.aspx</id><published>2012-02-20T02:15:00Z</published><updated>2012-02-20T02:15:00Z</updated><content type="html">&lt;p&gt;CRM 2011 has introduced a new concept called field level security. Whenever you create a secured field you will automatically get the secured key being shown just next to it. Can this be avoided?? Imagine a case where you do not want to show your employees that the field is a secured field. In that case this post will help to meet the requirement...&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Requirement:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This post will help you to hide the secured key symbol for a secured field in the contact entity.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Following are the steps to be followed&lt;/p&gt;
&lt;p&gt;1) Navigate to Settings - Customization - Customize the system. It will open a form as shown in the below figure.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-57/2630.Capture.PNG"&gt;&lt;img alt="" src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-57/2630.Capture.PNG" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;2) Now expand the entities and click on the forms section as shown in the below figure.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-57/7215.Capture.PNG"&gt;&lt;img alt="" src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-57/7215.Capture.PNG" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;3) Open the main form which will open the main form of the contact entity as shown in the below figure.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-57/5670.Capture.PNG"&gt;&lt;img alt="" src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-57/5670.Capture.PNG" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;4) Now create a new field by clicking the on the New Field button at the bottom right as shown in the below figure.While creating the new field Enable the Field Security as shown in the below figure.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-57/2117.Capture.PNG"&gt;&lt;img alt="" src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-57/2117.Capture.PNG" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;5) After creating the field place the field in the form as shown in the below figure.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-57/0358.Capture.PNG"&gt;&lt;img alt="" src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-57/0358.Capture.PNG" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;6) Now our target is to hide the key symbol next to the Secured Field. This can be achieved by writing a code snippet in the form load. To achieve the same open the form and click on the form properties as shown in the below figure.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-57/4130.Capture.PNG"&gt;&lt;img alt="" src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-57/4130.Capture.PNG" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;7) Now edit the library and place the following script in the form load function.&lt;/p&gt;
&lt;p&gt;crmForm.all.sample_securedfield_c.innerText=&amp;rdquo;Custom Field&amp;rdquo;;&lt;/p&gt;
&lt;p&gt;8) This will remove the key symbol and show the "Custom Field" label when the contact form loads.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3481855" width="1" height="1"&gt;</content><author><name>turlapativishnu</name><uri>http://blogs.technet.com/vishnu.t_4000_live.in/ProfileUrlRedirect.ashx</uri></author><category term="Microsoft Dynamics CRM 2011" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/Microsoft+Dynamics+CRM+2011/" /><category term="CRM 2011" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/CRM+2011/" /><category term="Vishnu Turlapati" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/Vishnu+Turlapati/" /></entry><entry><title>Sending HTML formatted emails in Microsoft Dynamics CRM. </title><link rel="alternate" type="text/html" href="http://blogs.technet.com/b/tvishnun1/archive/2012/02/06/sending-html-formatted-emails-in-microsoft-dynamics-crm.aspx" /><id>http://blogs.technet.com/b/tvishnun1/archive/2012/02/06/sending-html-formatted-emails-in-microsoft-dynamics-crm.aspx</id><published>2012-02-06T08:54:00Z</published><updated>2012-02-06T08:54:00Z</updated><content type="html">&lt;div class="post-header"&gt;
&lt;div class="post-header-line-1"&gt;&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="post-body entry-content" id="post-body-3551512044325382778"&gt;
&lt;div style="font-family: courier new;"&gt;
&lt;div&gt;Step 1: Create a Campaign record in CRM&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;a href="http://4.bp.blogspot.com/-5WCYI6Q3yn0/ToSJbRQYmfI/AAAAAAAACP4/z_8_Wq1Mq1c/s1600/Untitled.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5657798133465782770" style="margin: 0px 10px 10px 0px; width: 400px; height: 230px; float: left; cursor: pointer;" alt="" src="http://4.bp.blogspot.com/-5WCYI6Q3yn0/ToSJbRQYmfI/AAAAAAAACP4/z_8_Wq1Mq1c/s400/Untitled.jpg" border="0" closure_uid_ppwc28="13" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;a href="http://4.bp.blogspot.com/-sZpVas_JVK0/ToSIrhHfv0I/AAAAAAAACPw/bMp6JlMAVoY/s1600/Untitled.jpg"&gt;&lt;/a&gt;
&lt;div&gt;&lt;a href="http://1.bp.blogspot.com/-5cfvkhHdOYg/ToSIWlqAUlI/AAAAAAAACPo/PchKnslqY-E/s1600/Untitled.jpg"&gt;&lt;/a&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Step 2: Associate the target marketing list for the campaign that is &lt;br /&gt;created. This can be done by clicking the target marketing lists in the left navigation pane and click on the Add Existing Marketing List.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;a href="http://2.bp.blogspot.com/-PnOrVLP22Sc/ToSHjK9PhvI/AAAAAAAACPg/2ecxxdoD94Q/s1600/Untitled.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5657796070190581490" style="margin: 0px 10px 10px 0px; width: 400px; height: 224px; float: left; cursor: pointer;" alt="" src="http://2.bp.blogspot.com/-PnOrVLP22Sc/ToSHjK9PhvI/AAAAAAAACPg/2ecxxdoD94Q/s400/Untitled.jpg" border="0" closure_uid_ppwc28="15" /&gt;&lt;/a&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/-PnOrVLP22Sc/ToSHjK9PhvI/AAAAAAAACPg/2ecxxdoD94Q/s1600/Untitled.jpg"&gt;&lt;/a&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Step 3: Now click on the campaign activities in the left navigation pane. &lt;br /&gt;Here you have the option of creating a new campaign activity.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;a href="http://4.bp.blogspot.com/-sZpVas_JVK0/ToSIrhHfv0I/AAAAAAAACPw/bMp6JlMAVoY/s1600/Untitled.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5657797313089748802" style="margin: 0px 10px 10px 0px; width: 400px; height: 230px; float: left; cursor: pointer;" alt="" src="http://4.bp.blogspot.com/-sZpVas_JVK0/ToSIrhHfv0I/AAAAAAAACPw/bMp6JlMAVoY/s400/Untitled.jpg" border="0" closure_uid_ppwc28="14" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;Step 4: &lt;span lang="en-US"&gt;&lt;span style="font-size: 85%;"&gt;&lt;span style="font-size: 11pt;"&gt;In the new campaign activity window you can select the channel as email, enter the &lt;br /&gt;required fields as per the requirement and save the &lt;br /&gt;record.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin: 0px;"&gt;&lt;span style="font-family: Calibri,sans-serif; font-size: 85%;"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span style="font-family: courier new;"&gt;Step 5: After saving the record you can see the Distribute Campaign Activity button &lt;br /&gt;enabled.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div style="margin: 0pt; font-family: courier new;"&gt;&lt;span style="font-size: 85%;"&gt;&lt;span style="font-size: 11pt;"&gt;Step 6: When you hit the Distribute Campaign Activity button you can see the email activity &lt;br /&gt;window.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang="en-US" style="font-family: courier new;"&gt;&lt;span style="font-size: 85%;"&gt;&lt;span style="font-size: 11pt;"&gt;Step 7: Now take the html file which is to be sent in the body of the email and open the &lt;br /&gt;file in Internet Explorer. Now right click on the browser and say select all. &lt;br /&gt;After selecting the entire text copy the text and paste the same in the CRM &lt;br /&gt;email window.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin: 0pt; font-family: courier new;"&gt;&lt;span style="font-size: 85%;"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin: 0pt; font-family: courier new;"&gt;&lt;span style="font-size: 85%;"&gt;&lt;span style="font-size: 11pt;"&gt;Step 8: Now you can hit the distribute button in the email activity window and select the different options &lt;br /&gt;given by CRM to distribute email messages to target marketing &lt;br /&gt;lists.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang="en-US" style="font-family: courier new;"&gt;&lt;span style="font-size: 85%;"&gt;&lt;span style="font-size: 11pt;"&gt;Step 9:Now when we hit OK button in the window you can see the email messages created &lt;br /&gt;for the Campaign Activity .&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin: 0px;"&gt;&lt;span style="font-family: Calibri,sans-serif; font-size: 85%;"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3479011" width="1" height="1"&gt;</content><author><name>turlapativishnu</name><uri>http://blogs.technet.com/vishnu.t_4000_live.in/ProfileUrlRedirect.ashx</uri></author><category term="Microsoft Dynamics CRM 2011" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/Microsoft+Dynamics+CRM+2011/" /><category term="CRM 2011" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/CRM+2011/" /><category term="Vishnu Turlapati" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/Vishnu+Turlapati/" /></entry><entry><title>Activity Feeds in Microsoft Dynamics CRM 2011 </title><link rel="alternate" type="text/html" href="http://blogs.technet.com/b/tvishnun1/archive/2012/02/06/activity-feeds-in-microsoft-dynamics-crm-2011.aspx" /><id>http://blogs.technet.com/b/tvishnun1/archive/2012/02/06/activity-feeds-in-microsoft-dynamics-crm-2011.aspx</id><published>2012-02-06T08:49:00Z</published><updated>2012-02-06T08:49:00Z</updated><content type="html">&lt;div style="text-align: left;" dir="ltr" trbidi="on"&gt;&lt;b&gt;Activity Feeds:&lt;/b&gt;&lt;/div&gt;
&lt;div style="text-align: left;" dir="ltr" trbidi="on"&gt;&lt;/div&gt;
&lt;div style="text-align: left;" dir="ltr" trbidi="on"&gt;&lt;/div&gt;
&lt;div style="text-align: left;" dir="ltr" trbidi="on"&gt;Activity Feeds can be downloaded from the&amp;nbsp; Dynamics Market Place. Click Settings - Dynamics Market &lt;br /&gt;Place - Click on More Solutions tab. As soon as you click the more solutions tab &lt;br /&gt;a new page will be opened where you can search for the Microsoft Dynamics &lt;br /&gt;Activity Feeds. Click on Microsoft Dynamics Activity Feeds and hit the Try It &lt;br /&gt;button on the left side of the page. When you hit the try it button you can &lt;br /&gt;download the Cab file which can be imported into your &lt;br /&gt;organization.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Importing Activity Feeds: &lt;/b&gt;&lt;br /&gt;After downloading the &lt;br /&gt;Cab file you can import the solution back into CRM by navigating to Settings - &lt;br /&gt;Solutions - click on the import button and select the cab file which is &lt;br /&gt;downloaded. Import the customizations back into CRM. After importing all the &lt;br /&gt;customizations publish all customizations.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Changing the profile picture in activity feeds:&lt;/b&gt;&lt;br /&gt;Click on the What's new button in the workplace&lt;/div&gt;
&lt;div class="separator" style="text-align: center; clear: both;" dir="ltr" trbidi="on"&gt;&lt;a style="margin-right: 1em; margin-left: 1em;" href="http://4.bp.blogspot.com/-Q2LmwfawShM/TvIPc0so5zI/AAAAAAAACSU/ctp6oaT8Nuk/s1600/Untitled.jpg" imageanchor="1"&gt;&lt;img width="320" height="68" src="http://4.bp.blogspot.com/-Q2LmwfawShM/TvIPc0so5zI/AAAAAAAACSU/ctp6oaT8Nuk/s320/Untitled.jpg" border="0" closure_uid_ppwc28="8" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="text-align: left;" dir="ltr" trbidi="on"&gt;As soon as you click on What's new button you can edit hyperlink which will allow the user to add a new &lt;br /&gt;picture. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Activity Feeds Configuration:&lt;/b&gt;&lt;br /&gt;To enable activity feeds in Microsoft Dynamics crm you have to configure set of entities to use &lt;br /&gt;them in activity feeds. Following are the steps to configure entities in &lt;br /&gt;activity feeds:&lt;br /&gt;&lt;br /&gt;1) Click on settings work area and you can see Activity &lt;br /&gt;Feeds Configuration in the left navigation pane as shown in the below &lt;br /&gt;figure.&lt;/div&gt;
&lt;div style="text-align: left;" dir="ltr" trbidi="on"&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="separator" style="text-align: center; clear: both;" dir="ltr" trbidi="on"&gt;&lt;a style="clear: left; margin-right: 1em; margin-bottom: 1em; float: left;" href="http://3.bp.blogspot.com/-FxMgd7Brl38/TvIaQAi_37I/AAAAAAAACSc/B6VJWyUOEPE/s1600/Untitled.jpg" imageanchor="1"&gt;&lt;img width="320" height="114" src="http://3.bp.blogspot.com/-FxMgd7Brl38/TvIaQAi_37I/AAAAAAAACSc/B6VJWyUOEPE/s320/Untitled.jpg" border="0" closure_uid_ppwc28="9" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="text-align: left; clear: both;" dir="ltr" trbidi="on"&gt;2) Click on new button in the activity feeds configuration screen. As soon you hit the new &lt;br /&gt;button you can see a new form where you have the text box to enter the entity &lt;br /&gt;name. In the entity name the user has to give the schema name of the entity. Ex: &lt;br /&gt;For case entity the schema name is going to be incident.&lt;/div&gt;
&lt;div class="separator" style="text-align: left; clear: both;" dir="ltr" trbidi="on"&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="separator" style="text-align: left; clear: both;" dir="ltr" trbidi="on"&gt;3) After writing the schema name in the entity name text box you can save the record to create the &lt;br /&gt;post configuration rules. In the left side of the form you can see a checkbox &lt;br /&gt;called "Enable walls for this type of record form". This checkbox is used to &lt;br /&gt;make the wall enabled for the entity you have selected as shown in the below &lt;br /&gt;figure.&lt;/div&gt;
&lt;div class="separator" style="text-align: center; clear: both;" dir="ltr" trbidi="on"&gt;&lt;br /&gt;&lt;a style="clear: left; margin-right: 1em; margin-bottom: 1em; float: left;" href="http://1.bp.blogspot.com/-51kKG5Id-yY/TvIb_l0r9lI/AAAAAAAACSk/6fTHKQu8jog/s1600/Untitled.jpg" imageanchor="1"&gt;&lt;img width="320" height="148" src="http://1.bp.blogspot.com/-51kKG5Id-yY/TvIb_l0r9lI/AAAAAAAACSk/6fTHKQu8jog/s320/Untitled.jpg" border="0" closure_uid_ppwc28="10" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="text-align: left; clear: both;" dir="ltr" trbidi="on"&gt;&lt;/div&gt;
&lt;div class="separator" style="text-align: left; clear: both;" dir="ltr" trbidi="on"&gt;4) After making all the modifications publish all customizations by clicking on the All &lt;br /&gt;Customizations button in the customize tab in the ribbon.&lt;/div&gt;
&lt;div class="separator" style="text-align: left; clear: both;" dir="ltr" trbidi="on"&gt;&lt;b&gt;Follow Records in activity feeds:&lt;/b&gt;&lt;/div&gt;
&lt;div class="separator" style="text-align: left; clear: both;" dir="ltr" trbidi="on"&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="separator" style="text-align: left; clear: both;" dir="ltr" trbidi="on"&gt;1) To follow records or users using activity feeds you have first configure the activity feeds. Take for example you have configured the activity feeds for the entity systemuser. &lt;br /&gt;Now any user can follow or unfollow records in Microsoft Dynamics CRM. To follow users in Microsoft Dynamics following are the steps to be followed&lt;/div&gt;
&lt;div class="separator" style="text-align: left; clear: both;" dir="ltr" trbidi="on"&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="separator" style="text-align: left; clear: both;" dir="ltr" trbidi="on"&gt;a) Post Configuration records should be created with entity systemuser&lt;/div&gt;
&lt;div class="separator" style="text-align: left; clear: both;" dir="ltr" trbidi="on"&gt;b) After creating post configuration record click on the advanced find button in CRM.&lt;/div&gt;
&lt;div class="separator" style="text-align: left; clear: both;" dir="ltr" trbidi="on"&gt;c) Look for System Users and click on results button as shown in the below figure.&lt;/div&gt;
&lt;div class="separator" style="text-align: left; clear: both;" dir="ltr" trbidi="on"&gt;&lt;br /&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="separator" style="text-align: center; clear: both;" dir="ltr" trbidi="on"&gt;&lt;a style="clear: left; margin-right: 1em; margin-bottom: 1em; float: left;" href="http://2.bp.blogspot.com/-q-YTc6zhyMc/TvId4hBDHGI/AAAAAAAACSs/rsAVTVAGteI/s1600/Untitled.png" imageanchor="1"&gt;&lt;img width="320" height="79" src="http://2.bp.blogspot.com/-q-YTc6zhyMc/TvId4hBDHGI/AAAAAAAACSs/rsAVTVAGteI/s320/Untitled.png" border="0" closure_uid_ppwc28="11" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="text-align: left; clear: both;" dir="ltr" trbidi="on"&gt;d) Now after hitting the results button you can see the list of records that are available in your &lt;br /&gt;organization. Select the user who is to be followed and click on the follow button at the top of the ribbon as shown in the below figure.&lt;/div&gt;
&lt;div class="separator" style="text-align: left; clear: both;" dir="ltr" trbidi="on"&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="separator" style="text-align: left; clear: both;" dir="ltr" trbidi="on"&gt;Note: Follow button &lt;br /&gt;will be enabled only when the post configuration record is created for the &lt;br /&gt;systemuser entity.&lt;/div&gt;
&lt;div class="separator" style="text-align: center; clear: both;" dir="ltr" trbidi="on"&gt;&lt;a style="clear: left; margin-right: 1em; margin-bottom: 1em; float: left;" href="http://1.bp.blogspot.com/-A7AZKguj50s/TvIe_qwCouI/AAAAAAAACS0/Lf4cYr-EW14/s1600/Untitled.png" imageanchor="1"&gt;&lt;img width="320" height="101" src="http://1.bp.blogspot.com/-A7AZKguj50s/TvIe_qwCouI/AAAAAAAACS0/Lf4cYr-EW14/s320/Untitled.png" border="0" closure_uid_ppwc28="12" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="text-align: left;" dir="ltr" trbidi="on"&gt;e) If you want to unfollow a user you have to click on the unfollow button.&lt;br /&gt;&lt;br /&gt;f) When you follow a user all the posts that are posted by the user are going to be visible &lt;br /&gt;in your personal wall and the user's wall.&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3479010" width="1" height="1"&gt;</content><author><name>turlapativishnu</name><uri>http://blogs.technet.com/vishnu.t_4000_live.in/ProfileUrlRedirect.ashx</uri></author><category term="Microsoft Dynamics CRM 2011" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/Microsoft+Dynamics+CRM+2011/" /><category term="CRM 2011" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/CRM+2011/" /><category term="Vishnu Turlapati" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/Vishnu+Turlapati/" /></entry><entry><title>Placing dynamic contact image in CRM form </title><link rel="alternate" type="text/html" href="http://blogs.technet.com/b/tvishnun1/archive/2012/02/06/placing-dynamic-contact-image-in-crm-form.aspx" /><id>http://blogs.technet.com/b/tvishnun1/archive/2012/02/06/placing-dynamic-contact-image-in-crm-form.aspx</id><published>2012-02-06T08:45:00Z</published><updated>2012-02-06T08:45:00Z</updated><content type="html">&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Placing Dynamic Contact Image in CRM &lt;br /&gt;Form:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This post explains you how to keep image for every contact. &lt;br /&gt;When you just use web resource to add contact image you have the problem of &lt;br /&gt;having the same image for each and every contact. To make a workaround for this &lt;br /&gt;we can have dynamic images for each contact. Let us say you have different &lt;br /&gt;contacts available for your organization and for each of them you have to add an &lt;br /&gt;image, this concept will be perfect to resolve the issue.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Prerequisites:&lt;/span&gt;&lt;br /&gt;To achieve this requirement &lt;br /&gt;you should have a unique field in the contact entity. When you are creating a &lt;br /&gt;new contact, you should also create a new web resource of type image with name &lt;br /&gt;same as the unique field of the contact. This will help to dynamically generate &lt;br /&gt;images for each and every contact available in your organization. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 1: &lt;/span&gt;&lt;br /&gt;Add an image web resource with the &lt;br /&gt;unique name of the contact record that is created as shown in the below figure. &lt;br /&gt;Web resources can be found when you click on Customizations - Customize the &lt;br /&gt;system as shown in the below figure.&lt;/p&gt;
&lt;div class="separator" style="text-align: center; clear: both;"&gt;&lt;a style="margin-right: 1em; margin-left: 1em;" href="http://4.bp.blogspot.com/-jUDUmE_FmDg/TvnYPSgfSXI/AAAAAAAACTk/s_M8TwoCQ9A/s1600/Untitled.jpg" imageanchor="1"&gt;&lt;img width="320" height="118" src="http://4.bp.blogspot.com/-jUDUmE_FmDg/TvnYPSgfSXI/AAAAAAAACTk/s_M8TwoCQ9A/s320/Untitled.jpg" border="0" closure_uid_ppwc28="2" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="text-align: center; clear: both;"&gt;&lt;/div&gt;
&lt;p&gt;Now click on the new button to add the web &lt;br /&gt;resource and select the type of the web resource as JPG as shown in the below &lt;br /&gt;figure. Also the remember the name of the web resource should be prefixed with &lt;br /&gt;the unique name of the contact record as shown in the below image.&lt;/p&gt;
&lt;div class="separator" style="text-align: center; clear: both;"&gt;&lt;a style="margin-right: 1em; margin-left: 1em;" href="http://4.bp.blogspot.com/-NwXqX8olM7Q/TvnZNmL4Z4I/AAAAAAAACTw/2biHUV-I68o/s1600/Untitled.jpg" imageanchor="1"&gt;&lt;img width="320" height="178" src="http://4.bp.blogspot.com/-NwXqX8olM7Q/TvnZNmL4Z4I/AAAAAAAACTw/2biHUV-I68o/s320/Untitled.jpg" border="0" closure_uid_ppwc28="3" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;For ex:&lt;br /&gt;You &lt;br /&gt;have a unique name of the contact field as "ContactId". The value of Contactid &lt;br /&gt;is "1234". The name of the web resource which should be created is new_1234 &lt;br /&gt;where "new" is the attribute prefix.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step 2:&lt;/b&gt; &lt;br /&gt;After entering &lt;br /&gt;all the values in the web resource save the record. As soon as you save the &lt;br /&gt;record the url of the web resource can be found as shown in the below &lt;br /&gt;image.&lt;/p&gt;
&lt;div class="separator" style="text-align: center; clear: both;"&gt;&lt;/div&gt;
&lt;div class="separator" style="text-align: center; clear: both;"&gt;&lt;a style="margin-right: 1em; margin-left: 1em;" href="http://2.bp.blogspot.com/-4IAYMnWV6mg/TvnoiMHAiSI/AAAAAAAACUI/NoSRi7SfzvU/s1600/Untitled.jpg" imageanchor="1"&gt;&lt;img width="320" height="222" src="http://2.bp.blogspot.com/-4IAYMnWV6mg/TvnoiMHAiSI/AAAAAAAACUI/NoSRi7SfzvU/s320/Untitled.jpg" border="0" closure_uid_ppwc28="4" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;&lt;b&gt;Step 3:&lt;/b&gt;&lt;br /&gt;Now add &lt;br /&gt;an iframe to contact form as shown in the below image and place the url of the &lt;br /&gt;iframe as "about:blank". This url will dynamically be changed to the web &lt;br /&gt;resource url in the next steps. In the iframe properties uncheck the checkbox &lt;br /&gt;"Restrict Cross Frame Scripting".&lt;/p&gt;
&lt;div class="separator" style="text-align: center; clear: both;"&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="separator" style="text-align: center; clear: both;"&gt;&lt;a style="margin-right: 1em; margin-left: 1em;" href="http://1.bp.blogspot.com/-my2zBS7vu00/TvnrTuVw0KI/AAAAAAAACUU/kQDFA3-K0OI/s1600/Untitled.jpg" imageanchor="1"&gt;&lt;img width="320" height="130" src="http://1.bp.blogspot.com/-my2zBS7vu00/TvnrTuVw0KI/AAAAAAAACUU/kQDFA3-K0OI/s320/Untitled.jpg" border="0" closure_uid_ppwc28="5" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="text-align: center; clear: both;"&gt;&lt;a style="margin-right: 1em; margin-left: 1em;" href="http://1.bp.blogspot.com/-V4JqHiMqTxY/TvntPMJdDmI/AAAAAAAACUg/h0qjQB-_daw/s1600/Untitled.jpg" imageanchor="1"&gt;&lt;img width="320" height="307" src="http://1.bp.blogspot.com/-V4JqHiMqTxY/TvntPMJdDmI/AAAAAAAACUg/h0qjQB-_daw/s320/Untitled.jpg" border="0" closure_uid_ppwc28="6" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;&lt;b&gt;Step 4:&lt;/b&gt;&lt;br /&gt;Now navigate to the form properties of the contact entity and add the &lt;br /&gt;following script.&lt;br /&gt;&lt;br /&gt;var contactLogo = &lt;br /&gt;"https://orgname.crm.dynamics.com//WebResources/new_" + &lt;br /&gt;Xrm.Page.getAttribute("new_uniquefield").getValue();&lt;br /&gt;&lt;br /&gt;Xrm.Page.getControl("IFRAME_contactimage").setSrc(contactLogo);&lt;br /&gt;&lt;br /&gt;In this new_uniquefield will be the contact unique field which is created and &lt;br /&gt;IFRAME_contactimage will be the name of the iframe which you give while creating &lt;br /&gt;the iframe.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3479009" width="1" height="1"&gt;</content><author><name>turlapativishnu</name><uri>http://blogs.technet.com/vishnu.t_4000_live.in/ProfileUrlRedirect.ashx</uri></author><category term="Microsoft Dynamics CRM 2011" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/Microsoft+Dynamics+CRM+2011/" /><category term="CRM 2011" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/CRM+2011/" /><category term="Vishnu Turlapati" scheme="http://blogs.technet.com/b/tvishnun1/archive/tags/Vishnu+Turlapati/" /></entry></feed>