<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4743799863012838944</id><updated>2020-05-25T20:41:56.056+05:30</updated><category term="CRM 2011"/><category term="CRM 2013"/><category term="CRM"/><category term="C#"/><category term="Relationships"/><category term="WCF"/><category term="JavaScript"/><category term="Visual C#"/><category term="WPF"/><category term="Windows"/><title type='text'>Let us discuss</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://renadee.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://renadee.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Renjith P</name><uri>http://www.blogger.com/profile/05637493134397705488</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>46</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4743799863012838944.post-5649966515559961909</id><published>2015-09-21T20:55:00.000+05:30</published><updated>2015-09-21T20:55:02.619+05:30</updated><title type='text'>Configuration for CRM Plugins</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;CRM plugins are always great feature where we can automate many functionality which we cannot automate from user interface. But almost everyone of us might a faced a scenario where we may have to configure some data for the plugin to work. There are multiple solutions for such a situation like, create a custom entity where we can configure the data needed. But that can be costly if the configuration is required only for one plugin. In such a case, plugin itself has a feature for the same.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;May be you have already noticed this feature while registering the plugin on the right hand side of the window where we create a step for the plugin. We have two types of configurations, secure and unsecure which differs only on how they are stored. The configurations can be of any format (like xml) but of type string.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now, let us discuss how to retrieve the same in our plugin code and use it. When we create a plugin include, a constructor for the plugin class, which takes two parameters of type string as follows,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;public class SamplePlugin:IPlugin&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; public SamplePlugin(string unsecureConfig,string secureConfig)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* Now we have our configuration in the same format how it was added to &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;the plugin tool in the form of two parameters. The same can be extracted &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;as required for our implementation and use the same across the plugin. */&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;A detailed way of implementation can be found &lt;a href=&quot;http://blogs.msdn.com/b/crm/archive/2008/10/24/storing-configuration-data-for-microsoft-dynamics-crm-plug-ins.aspx&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt; which is using an xml format to save configuration.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;If different options with the advantages and disadvantages are to be discussed the information can be found &lt;a href=&quot;https://community.dynamics.com/crm/b/gonzaloruiz/archive/2011/09/14/how-to-add-configuration-parameters-to-plugins-in-crm-2011&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://renadee.blogspot.com/feeds/5649966515559961909/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4743799863012838944&amp;postID=5649966515559961909&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/5649966515559961909'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/5649966515559961909'/><link rel='alternate' type='text/html' href='http://renadee.blogspot.com/2015/09/configuration-for-crm-plugins.html' title='Configuration for CRM Plugins'/><author><name>Renjith P</name><uri>http://www.blogger.com/profile/05637493134397705488</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4743799863012838944.post-2233215971088377597</id><published>2014-08-01T23:56:00.000+05:30</published><updated>2015-01-08T15:53:32.520+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="CRM"/><title type='text'>Configuring Business rules in CRM 2013</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Business Rules let the system customizer apply conditional logic to a form. For using this feature, it not required to need any programming skills. This also helps to display error messages to the user that remind the users of the defined rules for a particular process. Such error messages prevent the user from saving a record until the issue is resolved. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;When we create a business rule, we can apply the scope of the rule, it can be either to all forms, or just one form. If we want to apply a business rule to several forms and not all forms, we must create a copy of the rule for each form. Business rules will be enforced when the respective form is in use, irrespective of the platform, whether it is a browser, tablet or CRM for mobile applications.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Business rules are configured to apply client side logic to data in CRM 2013. This is instead of using processes or custom code that runs on the server, such as workflows or plugins. Business rules apply to data that a user enters or modifies in a form. A business rule must be activated before the logic in the rule takes effect.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Each active business rule that is associated with a specific form is evaluated when that form is loaded, or when the value changes in a field that is included in a condition that is defined in the rule. Business rules are not run again when a record is saved.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;If a business rule includes a condition or an action that has a reference to a field that is not displayed on the form, the rule will not run, although an error is not created. It’s better to set non-event dependencies on a form to prevent other system customizers from removing a field without first removing the dependency.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The CRM for tablets client will only display the first 75 fields on a form. Therefore, any additional fields will not be displayed. We recommend that its made sure that all fields that are involved in the business logic that we have defined in Business rules are included in the first 75 fields on a form to avoid variable or unexpected behavior.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;When we create a business rule at first its status would be draft and in this state it will not affect any other users. For testing, click the preview button on the ribbon to preview a version of the form. Activated rules and draft business rules are applied to the preview of the form. To apply the logic that is defined to the system, we must save the business rule before activating the same. While the rule is in active status we cannot delete or modify a business rule. For that first we have to deactivate the rule and then make the changes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;We must save the business rule at least once before we activate the rule. When we edit a rule that is already saved, only click save on the command bar if we change the name, conditions and actions would be saved individually. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;For creating a similar rule like that of an existing rule, we can open the existing rule and then click on the save as button in the command bar. A new copy of the rule will be created, and we can make the required changes to the copy and then save the same.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;If we make any changes to a field in the form using business rules, it will not reset the value automatically even if the condition is reverse now. For that we have to create another rule.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Adding a proper description to the rule is always recommended, which describes for what the rule is created and how it works or interacts with other rules.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;Set the scope of a business rule&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;We can set the scope for the rule to all forms or select any one of the main or mobile forms. If we set the scope to any one form, we must create copies of the rule if we want to apply the rules to other forms, or we can change the scope to all forms if that is appropriate. In this case the rule will be applied to all forms of type Main or Quick Create. We cannot select the scope for a rule to apply only to the quick create form.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;Conditions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Conditions define the fields that will cause the rule to be triggered, and the conditions to evaluate to determine whether the actions that are configured in the rule should be performed. We can add multiple conditions based on the same fields or different fields. All conditions must evaluate to “true” for the actions to be applied-this is a logical AND. We cannot do this for an OR. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;When creating condition we can do this using the popular operators (=,&amp;gt;,&amp;lt;, or contains data). This depends on the data type of the selected field. Once the field and the operator is selected we have to select the condition type. There we have three options,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;mso-list: l0 level1 lfo1; text-align: justify; text-indent: -.25in;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; text-indent: -0.25in;&quot;&gt;·&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; text-indent: -0.25in;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; text-indent: -0.25in;&quot;&gt;Field: To compare the value of the selected form field to another field. This can be done only for those fields which are in the form and of same data type.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; text-indent: -0.25in;&quot;&gt;·&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; text-indent: -0.25in;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; text-indent: -0.25in;&quot;&gt;Value: To compare the value with the value what we enter.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; text-indent: -0.25in;&quot;&gt;·&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; text-indent: -0.25in;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; text-indent: -0.25in;&quot;&gt;Formula: This option is available only for those fields which are numerical or date data types. This type can be used to compare the result of a simple calculation that can use either a value from another form field or value that we enter.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;!--[if !supportLists]--&gt;&lt;br /&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;Actions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;In a business rule, we can add actions from one of the following options,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;mso-list: l1 level1 lfo2; text-align: justify; text-indent: -.25in;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;·&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;!--[endif]--&gt;Show error message: To set an error message on a field if the data in the field is not valid. The text we specify for the message will be displayed with an error icon near the field. The record cannot be saved while this message is displayed. If a user clicks the save icon, the focus will move to the first field that is on the form that has an error. If we change a field so that the rule is triggered and reevaluated, and the condition is no longer true, the error will be dismissed.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l1 level1 lfo2; text-align: justify; text-indent: -.25in;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; text-indent: -0.25in;&quot;&gt;·&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; text-indent: -0.25in;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; text-indent: -0.25in;&quot;&gt;Set field value: Field value can be set in three different ways as did for conditions. If we use an action in the business rule to set the value of a field, the OnChange event handlers for that field will not run. So the JavaScripts configured for the onchange event will not be triggered.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; text-indent: -0.25in;&quot;&gt;·&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; text-indent: -0.25in;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; text-indent: -0.25in;&quot;&gt;Set business required: Change the requirement level for the field. The options are Not Business Required and Business Required. There is no option to set this to business recommended.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; text-indent: -0.25in;&quot;&gt;·&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; text-indent: -0.25in;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; text-indent: -0.25in;&quot;&gt;Set visibility: To change whether the field is displayed in the form. The options are show field and hide field. We cannot use this on sections or tabs.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; text-indent: -0.25in;&quot;&gt;·&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; text-indent: -0.25in;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; text-indent: -0.25in;&quot;&gt;Lock or unlock field: To change whether the field is enabled in the form. The options are lock and unlock. Once the field is locked users cannot edit that field.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;!--[if !supportLists]--&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;For the last three options we have to set the reverse rule to set the property back if the opposite condition is true.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://renadee.blogspot.com/feeds/2233215971088377597/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4743799863012838944&amp;postID=2233215971088377597&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/2233215971088377597'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/2233215971088377597'/><link rel='alternate' type='text/html' href='http://renadee.blogspot.com/2014/08/configuring-business-rules-in-crm.html' title='Configuring Business rules in CRM 2013'/><author><name>Renjith P</name><uri>http://www.blogger.com/profile/05637493134397705488</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4743799863012838944.post-649835248035700512</id><published>2014-05-21T19:48:00.003+05:30</published><updated>2015-01-08T15:53:32.579+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="CRM"/><title type='text'>CRM - Handling Plugin Messages</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;In CRM when creating we will be handling multiple messages. I am trying to put different approaches we have to take based on messages in a single place.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Update&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;if (context.InputParameters.Contains(&quot;Target&quot;) &amp;amp;&amp;amp; context.InputParameters[&quot;Target&quot;] is Entity)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Entity entity = (Entity)context.InputParameters[&quot;Target&quot;];&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Associate/&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Disassociate&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;if (context.InputParameters.Contains(&quot;Target&quot;) &amp;amp;&amp;amp; context.InputParameters[&quot;Target&quot;] is EntityReference)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;EntityReference entityReference = (EntityReference)context.InputParameters[&quot;Target&quot;];&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;if (context.InputParameters.Contains(&quot;Relationship&quot;))&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;string relationshipName = context.InputParameters[&quot;Relationship&quot;].ToString();&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;if (relationshipName == &quot;relationshipnametocheck&quot;)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://rajeevpentyala.wordpress.com/2013/04/17/associatedisassociate-plugin-messages-in-crm/&quot; target=&quot;_blank&quot;&gt;Reference&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;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;SetState/&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;SetStateDynamicEntity&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;if (context.InputParameters.Contains(&quot;EntityMoniker&quot;) &amp;amp;&amp;amp; context.InputParameters[&quot;EntityMoniker&quot;] is EntityReference)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;EntityReference entityReference = (EntityReference)context.InputParameters[&quot;EntityMoniker&quot;];&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;If we have to trigger a plugin when a record status changes, its advisable to register the same for both tthe SetState and SetStateDynamicEntity. The reason why both the messages are required is both messages perform the same action in CRM and as there is not thumb rule for which action which message is fired, its better to register the plugin for both messages so that our plugin works properly. &lt;a href=&quot;http://www.mindfiresolutions.com/Plugin-for-SetState-Message-1753.php&quot; target=&quot;_blank&quot;&gt;Reference&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://renadee.blogspot.com/feeds/649835248035700512/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4743799863012838944&amp;postID=649835248035700512&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/649835248035700512'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/649835248035700512'/><link rel='alternate' type='text/html' href='http://renadee.blogspot.com/2014/05/crm-handling-plugin-messages.html' title='CRM - Handling Plugin Messages'/><author><name>Renjith P</name><uri>http://www.blogger.com/profile/05637493134397705488</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4743799863012838944.post-4299218821563249015</id><published>2014-05-09T09:07:00.003+05:30</published><updated>2015-01-08T15:53:32.540+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="CRM 2011"/><category scheme="http://www.blogger.com/atom/ns#" term="CRM 2013"/><title type='text'>CRM - Creating an email using REST endpoints</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;As a CRM developer everyone of us will undergo a scenario where now or tomorrow we may have to create an email record using REST endpoint. Its pretty easy that we can use any one of the REST approach and do that. But the challenge here is that REST endpoint does not support the party list. Because of this we cannot assign them to the email record which we create.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Solution for this is to create an activity (email) first and then create the a party list entity and link that to the created activity. To see how to do that we can refer to this simple but effective &lt;a href=&quot;http://mscrmshop.blogspot.in/2011/09/how-to-create-email-activity-using-rest.html&quot; target=&quot;_blank&quot;&gt;blog&lt;/a&gt; from &quot;MS CRM Shop&quot;.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Thanks team for this nice blog.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Hope this helps !!!&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://renadee.blogspot.com/feeds/4299218821563249015/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4743799863012838944&amp;postID=4299218821563249015&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/4299218821563249015'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/4299218821563249015'/><link rel='alternate' type='text/html' href='http://renadee.blogspot.com/2014/05/crm-creating-email-using-rest-endpoints.html' title='CRM - Creating an email using REST endpoints'/><author><name>Renjith P</name><uri>http://www.blogger.com/profile/05637493134397705488</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4743799863012838944.post-6189569163546772384</id><published>2014-05-05T09:32:00.003+05:30</published><updated>2015-01-08T15:53:32.567+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="CRM 2013"/><title type='text'>CRM 2013 - Include Middle Name in contact&#39;s flyout control</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;By default, the contact&#39;s full name is populated as fly out control in CRM 2013. This will get reflected once the user enters the data and clicks on &quot;Done&quot; button.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The fly out control for the contact is based on the system settings. So if we need to make any changes to the fly out anchor the only way to do this right now is to change the system settings accordingly.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;For example, by default the full name is set to have only first name and last name. If we need to have the middle name in the fly out control, include the middle name also in the contact name format under system settings.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;For a detailed blog on this same subject please find it &lt;a href=&quot;https://community.dynamics.com/crm/b/crmfranklee/archive/2014/01/02/crm-2013-how-to-include-contact-s-middle-name-field-in-the-flyout.aspx&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Thanks Frank for such a nice blog.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://renadee.blogspot.com/feeds/6189569163546772384/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4743799863012838944&amp;postID=6189569163546772384&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/6189569163546772384'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/6189569163546772384'/><link rel='alternate' type='text/html' href='http://renadee.blogspot.com/2014/05/crm-2013-include-middle-name-in.html' title='CRM 2013 - Include Middle Name in contact&#39;s flyout control'/><author><name>Renjith P</name><uri>http://www.blogger.com/profile/05637493134397705488</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4743799863012838944.post-1394585047809718637</id><published>2014-05-05T09:05:00.005+05:30</published><updated>2015-01-08T15:53:32.504+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="CRM 2013"/><title type='text'>CRM 2013 - Composite Fields an overview</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;While trying to understand more on the composite control was able to see a blog in Community forums regarding the same.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Thanks to the author for such a nice blog.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Please read the same &lt;a href=&quot;http://community.dynamics.com/crm/b/magnetismsolutionscrmblog/archive/2013/10/22/working-with-dynamics-crm-2013-composite-fields-fly-out-menu.aspx&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Hope this help!!!&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://renadee.blogspot.com/feeds/1394585047809718637/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4743799863012838944&amp;postID=1394585047809718637&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/1394585047809718637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/1394585047809718637'/><link rel='alternate' type='text/html' href='http://renadee.blogspot.com/2014/05/crm-2013-composite-fields-overview.html' title='CRM 2013 - Composite Fields an overview'/><author><name>Renjith P</name><uri>http://www.blogger.com/profile/05637493134397705488</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4743799863012838944.post-3381279030000461243</id><published>2014-04-26T19:45:00.003+05:30</published><updated>2015-01-08T15:53:32.530+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="CRM 2013"/><title type='text'>CRM 2013 - Refresh and Save functions</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;In CRM 2013, we have got two different functions one for saving the form and refreshing the form. Advantage of these two are that they are asynchronous in nature which can do the other activities based on the result of this refresh or save. So for example if we need to call function1 if the refresh/save was successful and function2 otherwise its pretty easy now.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;We will look at refresh first,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Xrm.Page.data.refresh(save).then(&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; function () {&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Do something if the refresh is successful&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; function () {&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Do something if the refresh is unsuccessful&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; );&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;In the above example save is a boolean value which should be used to mention whether we need to save the form after it is refreshed. If true then the form will be saved and if not then the form will not be saved.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Next we will look at the save function.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Xrm.Page.data.save().then(&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; function () {&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Do something if the save operation is successful.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; function () {&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Do something if the save operation is unsuccessful.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; );&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;In both the above cases the success call back will not have any arguments. It will simply be called if the operation succeeds. At the same time error call back will be having an object with properties:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;errorCode: The error code.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;message: A localized error message.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;One more thing to be noted for these functions are that these two are available only for &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/41462684-3e5d-4858-8be4-1a7c4fcdeff6(v=crm.6)#BKMK_UpdatedEntties&quot; target=&quot;_blank&quot;&gt;updated entities&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Hope this helps!!!&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://renadee.blogspot.com/feeds/3381279030000461243/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4743799863012838944&amp;postID=3381279030000461243&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/3381279030000461243'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/3381279030000461243'/><link rel='alternate' type='text/html' href='http://renadee.blogspot.com/2014/04/crm-2013-refresh-and-save-functions.html' title='CRM 2013 - Refresh and Save functions'/><author><name>Renjith P</name><uri>http://www.blogger.com/profile/05637493134397705488</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4743799863012838944.post-5445505754950345356</id><published>2014-04-20T15:06:00.001+05:30</published><updated>2015-01-08T15:53:32.550+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="CRM 2013"/><title type='text'>CRM 2013 - Accessing Individual attributes in a composite control</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;In CRM 2013, the concept of composite attributes is introduced and when the field is used in the form only the composite control will be displayed in the form. When the user has to edit this field the constituent controls will be loaded in the form of flyout controls.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;We can get the values of the composite controls using getValue but for setting the value we have to access the individual fields loaded to the form.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;These individual forms can be accessed directly. The naming convention followed by such fields are as follows,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;&amp;lt;composite control name&amp;gt;_compositionLinkControl_&amp;lt;constituent attribute name&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;For example if we have to access address_line1 control in address1_composite use the below code,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Xrm.Page.getControl(&quot;address1_composite_compositionLinkControl_address1_line1&quot;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://renadee.blogspot.com/feeds/5445505754950345356/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4743799863012838944&amp;postID=5445505754950345356&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/5445505754950345356'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/5445505754950345356'/><link rel='alternate' type='text/html' href='http://renadee.blogspot.com/2014/04/crm-2013-accessing-composite-attributes.html' title='CRM 2013 - Accessing Individual attributes in a composite control'/><author><name>Renjith P</name><uri>http://www.blogger.com/profile/05637493134397705488</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4743799863012838944.post-5456316814723567043</id><published>2014-04-20T14:32:00.001+05:30</published><updated>2015-09-21T20:55:34.239+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="CRM 2013"/><title type='text'>CRM 2013 - Support for tablets</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;You will be already aware that CRM 2013 support the tablet environment as well. From a developer point of view we need to take care that the code which we are using will also work for the tablet environment. This is because the CRM for tablets does not allow any functions that can block the execution of the scripts. Normal javascript functions like alert, confirm and prompts will not work as we expect in tablets. They will simply throw errors.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;If we need to show any message to the user working in tablets then we need to use the latest functions as part of CRM SDK instead of the alerts or prompts. We have to use Xrm.Utility.alertDialog and confirmDialog functions to display messages to the user.&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;This is because these functions do not stop the processing of scripts until the user closes them.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Similarly below are some of the examples that will not work in tablets when using CRM,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Xrm.Page.context.getCurrentTheme&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Xrm.Page.data.entity.getDataXml&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Xrm.Page.ui.formSelector object methods&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Xrm.Page.ui.navigation.items collection&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Xrm.Page.ui.refreshRibbon&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Xrm.Page.ui.ViewPort methods&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Xrm.Page.ui.control Webresource and IFRAME control methods&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Xrm.Page.ui.tab.setDisplayState&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Xrm.Utility.openWebResource&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;If opened from the tablets these functions will simply execute an empty function and return nothing. If we expect a return value from these functions it will be undefined.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;So if we are customizing in CRM for tablets then its better to distinguish between the code that will run in CRM tablets&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;It can be done by following below steps,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Get the client type (Xrm.Page.context.client.getClient())&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;If that is &quot;Mobile&quot;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Then do the coding for the tablets there&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Else do the coding for the normal CRM scenario.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Not only the above fields, CRM for tablets implement the composite fields also in a different way than how the web application implements it. Composite fields will be substituted by the constituent attributes and display them instead.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Similar is the case for Web resources and IFRAMEs. If our code interacts with such objects we can expect that the control will not exist in a tablet CRM environment.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;If you are not sure which commands will work on tablets then include a command rule which will not include such commands.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Reference: &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/dn481572(v=crm.6).aspx&quot; target=&quot;_blank&quot;&gt;Specify what commands will display in CRM for tablets&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://renadee.blogspot.com/feeds/5456316814723567043/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4743799863012838944&amp;postID=5456316814723567043&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/5456316814723567043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/5456316814723567043'/><link rel='alternate' type='text/html' href='http://renadee.blogspot.com/2014/04/crm-2013-support-for-tablets.html' title='CRM 2013 - Support for tablets'/><author><name>Renjith P</name><uri>http://www.blogger.com/profile/05637493134397705488</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4743799863012838944.post-8629623743363479311</id><published>2014-02-19T18:22:00.001+05:30</published><updated>2015-01-08T15:53:32.618+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="CRM 2011"/><category scheme="http://www.blogger.com/atom/ns#" term="CRM 2013"/><title type='text'>CRM - Adding an activity through code</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;There can be scenarios where we have to add activities programmatically to the CRM organization either through a plugin or through a workflow. Below is how we can achieve this.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;Entity&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt; followupActivity = &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;new&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;Entity&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&quot;phonecall&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;followupActivity[&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&quot;subject&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;] = &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&quot;Followup Phone call activity&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;Entity&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt; activityPartyFrom = &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;new&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;Entity&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&quot;activityparty&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;                activityPartyFrom.Attributes.Add(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&quot;partyid&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;, &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;new&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;EntityReference&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&quot;systemuser&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;, workflowContext.UserId));&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;                followupActivity.Attributes.Add(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&quot;from&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;, &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;new&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;Entity&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;[] { activityPartyFrom });&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;Entity&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt; activityPartyTo = &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;new&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;Entity&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&quot;activityparty&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;activityPartyTo.Attributes.Add(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&quot;partyid&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;, &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;new&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;EntityReference&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&quot;lead&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;, &quot;Lead&#39;s Guid&quot;));&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;followupActivity.Attributes.Add(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&quot;to&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;, &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;new&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;Entity&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;[] { activityPartyTo });&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;followupActivity[&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&quot;scheduledend&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;] = &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;DateTime&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;.Now.AddDays(30);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;service.Create(followupActivity);&lt;/div&gt;&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;Here I am trying to add a phone call activity and assuming that this is from the workflow, workflowcontext used is the workflow context to get the owner of the activity. I am here trying to add a phone call and the entity should change according to our need. Due date is set to 30 days from today and the from is the user under which the workflow is running and to is a lead whose Guid we need to pass so as to set the To field.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Hope this helps !!!&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://renadee.blogspot.com/feeds/8629623743363479311/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4743799863012838944&amp;postID=8629623743363479311&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/8629623743363479311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/8629623743363479311'/><link rel='alternate' type='text/html' href='http://renadee.blogspot.com/2014/02/crm-adding-activity-through-code.html' title='CRM - Adding an activity through code'/><author><name>Renjith P</name><uri>http://www.blogger.com/profile/05637493134397705488</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4743799863012838944.post-3211446011512534988</id><published>2014-02-17T23:14:00.000+05:30</published><updated>2015-01-08T15:53:32.527+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="CRM 2011"/><category scheme="http://www.blogger.com/atom/ns#" term="CRM 2013"/><title type='text'>CRM - Passing data between Plugins</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;When working with Plugins its quite natural to come across the scenarios where a data needs to be shared by two different plugins. This can be achieved using the shared variables. Below is how it can be done. In the plugin which is going to set the variable write the code as follows,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;context.SharedVariables[&quot;UniqueName&quot;] = &quot;Data to be shared&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;context is the plugin execution context. Now the data that needs to be shared is available in the shared variable UniqueName. &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Next step is to consume the data available in the other plugin. For that first check whether the shared variable has the respective UniqueName. If available consume the data in it using the below code.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;string uniqueName&amp;nbsp;= (string)context.SharedVariables[&quot;PrimaryContact&quot;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;All done. We have the data from first plugin in second one now. Enjoy !!!&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://renadee.blogspot.com/feeds/3211446011512534988/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4743799863012838944&amp;postID=3211446011512534988&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/3211446011512534988'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/3211446011512534988'/><link rel='alternate' type='text/html' href='http://renadee.blogspot.com/2014/02/crm-passing-data-between-plugins.html' title='CRM - Passing data between Plugins'/><author><name>Renjith P</name><uri>http://www.blogger.com/profile/05637493134397705488</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4743799863012838944.post-6272118949164956607</id><published>2014-02-10T16:46:00.003+05:30</published><updated>2015-01-08T15:53:32.570+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="WPF"/><title type='text'>WPF - Supressing Script Errors in WPF WebBrowser control</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;When Web sites hosted in Webbrowser controls are throwing JScript errors then we have to hide them. WebBrowser controls don&#39;t have the property to hide script errors so we have to handle it explicitly or we have to use WinForms WebBrowser control. &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;For the first approach we can use the below method in the browsers navigated event.&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;private&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;void&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt; HideScriptErrors(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;WebBrowser&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt; webBrowser, &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;bool&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt; hide)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;FieldInfo&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt; fieldInfo = &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;typeof&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;WebBrowser&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;).GetField(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&quot;_axIWebBrowser2&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;, &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;BindingFlags&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;.Instance | &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;BindingFlags&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;.NonPublic);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;if&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt; (fieldInfo == &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;null&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;                &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;return&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;object&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt; objectWebBrowser = fieldInfo.GetValue(webBrowser);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;if&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt; (objectWebBrowser == &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;null&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;                &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;return&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;            objectWebBrowser.GetType().InvokeMember(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #a31515; font-family: Calibri; font-size: small;&quot;&gt;&quot;silent&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;, &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Calibri; font-size: small;&quot;&gt;BindingFlags&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;.SetProperty, &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;null&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;, objectWebBrowser, &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;new&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;object&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;[] { hide });&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;}&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;You can look at the original post &lt;a href=&quot;http://social.msdn.microsoft.com/Forums/vstudio/en-US/4f686de1-8884-4a8d-8ec5-ae4eff8ce6db/new-wpf-webbrowser-how-do-i-suppress-script-errors&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;This worked for me. Hope it will for you as well !!! :)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://renadee.blogspot.com/feeds/6272118949164956607/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4743799863012838944&amp;postID=6272118949164956607&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/6272118949164956607'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/6272118949164956607'/><link rel='alternate' type='text/html' href='http://renadee.blogspot.com/2014/02/wpf-supressing-script-errors-in-wpf.html' title='WPF - Supressing Script Errors in WPF WebBrowser control'/><author><name>Renjith P</name><uri>http://www.blogger.com/profile/05637493134397705488</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4743799863012838944.post-2788155852868841419</id><published>2014-02-06T11:38:00.001+05:30</published><updated>2015-01-08T15:53:32.523+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="CRM 2011"/><category scheme="http://www.blogger.com/atom/ns#" term="CRM 2013"/><title type='text'>CRM 2013 - Create a SDK code project in Visual Studio</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;As a developer, there can be scenarios where we have to use CRM SDK in our code so as to connect to CRM and use the messages from SDK. To make sure our VS project is ready to use we have to follow some steps. &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Even though the title says 2013 this is applicable to 2011 as well.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;h4 style=&quot;text-align: justify;&quot;&gt;Prerequisites&lt;/h4&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Below are the prerequisites for the same.&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Any Visual Studio (even the express edition works): CRM SDK is built on .NET 4.0 so even VS 2010 will work in this case.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;CRM SDK: If CRM SDK is not installed on your computer, it can be downloaded from here (&lt;a href=&quot;http://www.microsoft.com/en-us/download/details.aspx?id=24004&quot; target=&quot;_blank&quot;&gt;CRM 2011&lt;/a&gt;, &lt;a href=&quot;http://www.microsoft.com/en-us/download/details.aspx?id=40321&quot; target=&quot;_blank&quot;&gt;CRM 2013&lt;/a&gt;).&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Windows Identity Foundation: If you are using windows 8 or Windows server 2012, then we have to just enable already existing WIF. If you are using windows 7 or windows server 2008, we have install the WIF 3.5. For installing, download it from &lt;a href=&quot;http://www.microsoft.com/en-us/download/details.aspx?id=17331&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;Once all the prerequisites are in place we can start creating a project which will interact with CRM from our code. Follow the below steps for achieving our target,&lt;/span&gt;&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Create a console application for either C# or VB according to our comfort level.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Make sure the target framework is set to MS .NET framework 4.0. By default it will be client profile.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Add all the required reference to our project. This includes below references.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;System.Data.Linq&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;System.DirectoryServices.AccountManagement&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;System.Runtime.Serialization&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;System.Security&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;System.ServiceModel&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Add the required SDK assembly reference as per our requirement. This is available from the bin folder of respective CRM version SDK.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Add the required identity reference file. We can get this file from the file location in the system &lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;at Program Files\Reference Assemblies\Microsoft\Windows Identity Foundation\v3.5.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;We are done with adding the references and now we are ready to go with our development activity.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;For every project we have to do this. So its better if we can save this as a project template for our future references.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;For detailed Microsoft documentation please refer the original site &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/dn481588(v=crm.6).aspx&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Hope this helped everyone. :) !!!&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://renadee.blogspot.com/feeds/2788155852868841419/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4743799863012838944&amp;postID=2788155852868841419&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/2788155852868841419'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/2788155852868841419'/><link rel='alternate' type='text/html' href='http://renadee.blogspot.com/2014/02/crm-2013-create-sdk-code-project-in.html' title='CRM 2013 - Create a SDK code project in Visual Studio'/><author><name>Renjith P</name><uri>http://www.blogger.com/profile/05637493134397705488</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4743799863012838944.post-3011475244554040117</id><published>2014-01-21T16:39:00.002+05:30</published><updated>2015-01-08T15:53:32.525+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="CRM 2011"/><title type='text'>CRM 2011 - Reflexive relationship must specify direction using ReflexiveManyToManyRelationship</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;When trying to retrieve data for reflexive relationship I was getting the exception which is the title of this post. How I was able to fix the same was by just using once line of code as below which will mention whether the role is referencing or referenced.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;relationship.PrimaryEntityRole = &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-size: small;&quot;&gt;EntityRole&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;.Referencing;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;where relationship is the object Relationship.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Hope this helped someone. !!!&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://renadee.blogspot.com/feeds/3011475244554040117/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4743799863012838944&amp;postID=3011475244554040117&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/3011475244554040117'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/3011475244554040117'/><link rel='alternate' type='text/html' href='http://renadee.blogspot.com/2014/01/crm-2011-reflexive-relationship-must.html' title='CRM 2011 - Reflexive relationship must specify direction using ReflexiveManyToManyRelationship'/><author><name>Renjith P</name><uri>http://www.blogger.com/profile/05637493134397705488</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4743799863012838944.post-7512451481574143473</id><published>2014-01-03T10:10:00.000+05:30</published><updated>2015-09-21T20:55:48.651+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>Visual C# - Check operator</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Check operator tells the runtime to generate an OverflowException rather than overflowing&amp;nbsp; silently when an integral expression or statement exceeds the arithmetic limits of that type. &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The checked operator affects expressions with the ++,--,+,-,*,/ and explicit conversion operators between integral types. Checked can be used around either an expression or a statement block. For example:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;int a = 1000000;&lt;br /&gt;int b = 1000000;&lt;br /&gt;int c = checked(a*b); //Checks just the expression.&lt;br /&gt;checked &amp;nbsp;//Checks all expressions in statement block.&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;...&lt;br /&gt;&amp;nbsp;c = a * b;&lt;br /&gt;&amp;nbsp;...&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;If we are using a compiler with the /checked command line then this will check all the expressions in the program.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;In such a case if we need to disable overflow checking just for specific expressions or statements, we can do so with the unchecked operator. For example:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;int x = int.MaxValue;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;int y = unchecked (x + 1); //Leaves the expression from checking.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;unchecked&amp;nbsp; //Leaves all the expressions inside the block from checking.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&amp;nbsp;int z = x + 1;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Against all the above statements let&#39;s say we have a constant expression then the overflow will be evaluated at the compile time itself unless we are applying the unchecked operator.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;int x = int.MaxValue + 1; //Compile time error.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;int y = unchecked (int.MaxValue + 1); //No errors.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://renadee.blogspot.com/feeds/7512451481574143473/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4743799863012838944&amp;postID=7512451481574143473&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/7512451481574143473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/7512451481574143473'/><link rel='alternate' type='text/html' href='http://renadee.blogspot.com/2014/01/visual-c-check-operator.html' title='Visual C# - Check operator'/><author><name>Renjith P</name><uri>http://www.blogger.com/profile/05637493134397705488</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4743799863012838944.post-645862170805866844</id><published>2013-12-27T19:54:00.002+05:30</published><updated>2015-09-21T20:55:48.641+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>Visual C# - Avoiding Conflicts with Keywords</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;As a programmer, we all should be aware that keywords of a programming language cannot be used as identifiers. That is the case for Visual C# as well. We cannot use a keyword as an identifier. As we are aware that .NET framework is multilingual such conflicts can happen when we are referring libraries written in another language. An identifier in the external library can be conflicting with C# language. &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;The way to avoid this is by using the &lt;a href=&quot;mailto:&#39;@&#39;&quot;&gt;&#39;@&#39;&lt;/a&gt; symbol as a prefix to such identifiers. Ideally we cannot use &#39;class&#39; as an identifier in C#. But this can be made possible by using it as &lt;a href=&quot;mailto:&#39;@class&#39;&quot;&gt;&#39;@class&#39;&lt;/a&gt;. This is legal and is same as &#39;class&#39;.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;This is not the case for contextual keywords. They can be used as identifiers without &lt;a href=&quot;mailto:&#39;@&#39;&quot;&gt;&#39;@&#39;&lt;/a&gt; symbol. Ambiguity cannot arise within the context in which they are used.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Hope this helps !!!&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://renadee.blogspot.com/feeds/645862170805866844/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4743799863012838944&amp;postID=645862170805866844&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/645862170805866844'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/645862170805866844'/><link rel='alternate' type='text/html' href='http://renadee.blogspot.com/2013/12/visual-c-avoiding-conflicts-with.html' title='Visual C# - Avoiding Conflicts with Keywords'/><author><name>Renjith P</name><uri>http://www.blogger.com/profile/05637493134397705488</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4743799863012838944.post-7953554531743892268</id><published>2013-12-27T19:47:00.000+05:30</published><updated>2015-09-21T20:55:48.662+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Visual C#"/><title type='text'>Visual C# - Compiler Options</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Below are the list of commands/options available for the Visual C# compiler. These options can be used through the csc.exe executable available along with the .NET framework. &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;In general case, the executable will be under %SystemRoot%\Microsoft.NET\Framework\&amp;lt;Framework-version&amp;gt;. In this path %SystemRoot% is the windows directory.&lt;/span&gt;&lt;/div&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;OUTPUT FILES&lt;/h4&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/out:&amp;lt;file&amp;gt;&lt;/strong&gt; - Specify output file name (default: base name of file with main class or first file)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/target:exe&lt;/strong&gt; - Build a console executable (default) (Short form: /t:exe)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/target:winexe&lt;/strong&gt; - Build a Windows executable (Short form: /t:winexe)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/target:library&lt;/strong&gt; - Build a library (Short form: /t:library)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/target:module&lt;/strong&gt; - Build a module that can be added to another assembly (Short form: /t:module)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/target:appcontainerexe&lt;/strong&gt;&amp;nbsp;- Build an Appcontainer executable (Short form: /t:appcontainerexe)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/target:winmdobj&lt;/strong&gt; - Build a Windows Runtime intermediate file that is consumed by WinMDExp (Short form: /t:winmdobj)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/doc:&amp;lt;file&amp;gt;&lt;/strong&gt; - XML Documentation file to generate&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/platform:&amp;lt;string&amp;gt;&lt;/strong&gt; - Limit which platforms this code can run on: x86, Itanium, x64, arm, anycpu32bitpreferred, or anycpu. The default is anycpu.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;INPUT FILES&lt;/h4&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/recurse:&amp;lt;wildcard&amp;gt;&lt;/strong&gt; - Include all files in the current directory and subdirectories according to the wildcard specifications&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/reference:&amp;lt;alias&amp;gt;=&amp;lt;file&amp;gt;&lt;/strong&gt; - Reference metadata from the specified assembly file using the given alias (Short form: /r)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/reference:&amp;lt;file list&amp;gt;&lt;/strong&gt; - Reference metadata from the specified assembly files (Short form: /r)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/addmodule:&amp;lt;file list&amp;gt;&lt;/strong&gt; - Link the specified modules into this assembly&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/link:&amp;lt;file list&amp;gt;&lt;/strong&gt; - Embed metadata from the specified interop assembly files (Short form: /l)&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;RESOURCES&lt;/h4&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/win32res:&amp;lt;file&amp;gt;&lt;/strong&gt; - Specify a Win32 resource file (.res)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/win32icon:&amp;lt;file&amp;gt;&lt;/strong&gt; - Use this icon for the output&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/win32manifest:&amp;lt;file&amp;gt;&lt;/strong&gt; - Specify a Win32 manifest file (.xml)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/nowin32manifest&lt;/strong&gt; - Do not include the default Win32 manifest&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/resource:&amp;lt;resinfo&amp;gt;&lt;/strong&gt; - Embed the specified resource (Short form: /res)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/linkresource:&amp;lt;resinfo&amp;gt;&lt;/strong&gt; - Link the specified resource to this assembly (Short form: /linkres), &lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Where the resinfo format is &amp;lt;file&amp;gt;[,&amp;lt;string name&amp;gt;[,public|private]]&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;CODE GENERATION&lt;/h4&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/debug[+|-]&lt;/strong&gt;&amp;nbsp;- Emit debugging information&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/debug:{full|pdbonly}&lt;/strong&gt; - Specify debugging type (&#39;full&#39; is default, and enables attaching a debugger to a running program)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/optimize[+|-]&lt;/strong&gt; - Enable optimizations (Short form: /o)&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;ERRORS AND WARNINGS&lt;/h4&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/warnaserror[+|-]&lt;/strong&gt; - Report all warnings as errors&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/warnaserror[+|-]:&amp;lt;warn list&amp;gt;&lt;/strong&gt; - Report specific warnings as errors&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/warn:&amp;lt;n&amp;gt;&lt;/strong&gt; - Set warning level (0-4) (Short form: /w)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/nowarn:&amp;lt;warn list&amp;gt;&lt;/strong&gt; - Disable specific warning messages&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;LANGUAGE&lt;/h4&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/checked[+|-]&lt;/strong&gt; - Generate overflow checks&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/unsafe[+|-]&lt;/strong&gt; - Allow &#39;unsafe&#39; code&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/define:&amp;lt;symbol list&amp;gt;&lt;/strong&gt; - Define conditional compilation symbol(s) (Short form: /d)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/langversion:&amp;lt;string&amp;gt;&lt;/strong&gt; - Specify language version mode: ISO-1, ISO-2, 3, 4, 5, or Default&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;SECURITY&lt;/h4&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/delaysign[+|-]&lt;/strong&gt;&amp;nbsp;- Delay-sign the assembly using only the public portion of the strong name key&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/keyfile:&amp;lt;file&amp;gt;&lt;/strong&gt; - Specify a strong name key file&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/keycontainer:&amp;lt;string&amp;gt;&lt;/strong&gt; - Specify a strong name key container&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/highentropyva[+|-]&lt;/strong&gt; - Enable high-entropy ASLR&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;MISCELLANEOUS&lt;/h4&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;@&amp;lt;file&amp;gt;&lt;/strong&gt; - Read response file for more options&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/help&lt;/strong&gt; - Display this usage message (Short form: /?)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/nologo&lt;/strong&gt; - Suppress compiler copyright message&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/noconfig&lt;/strong&gt; - Do not auto include CSC.RSP file&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;ADVANCED&lt;/h4&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/baseaddress:&amp;lt;address&amp;gt;&lt;/strong&gt; - Base address for the library to be built&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/bugreport:&amp;lt;file&amp;gt;&lt;/strong&gt; - Create a &#39;Bug Report&#39; file&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/codepage:&amp;lt;n&amp;gt;&lt;/strong&gt; - Specify the codepage to use when opening source files&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/utf8output&lt;/strong&gt; - Output compiler messages in UTF-8 encoding&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/main:&amp;lt;type&amp;gt;&lt;/strong&gt; - Specify the type that contains the entry point (ignore all other possible entry points) (Short form: /m)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/fullpaths&lt;/strong&gt; - Compiler generates fully qualified paths&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/filealign:&amp;lt;n&amp;gt;&lt;/strong&gt; - Specify the alignment used for output file sections&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/pdb:&amp;lt;file&amp;gt;&lt;/strong&gt;&amp;nbsp;- Specify debug information file name (default: output file name with .pdb extension)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/errorendlocation&lt;/strong&gt; - Output line and column of the end location of each error&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/preferreduilang&lt;/strong&gt; - Specify the preferred output language name.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/nostdlib[+|-]&lt;/strong&gt;&amp;nbsp;- Do not reference standard library (mscorlib.dll)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/subsystemversion:&amp;lt;string&amp;gt;&lt;/strong&gt;&amp;nbsp;- Specify subsystem version of this assembly&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/lib:&amp;lt;file list&amp;gt;&lt;/strong&gt; -&amp;nbsp;Specify additional directories to search in for references&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/errorreport:&amp;lt;string&amp;gt;&lt;/strong&gt; - Specify how to handle internal compiler errors: prompt, send, queue, or none. The default is queue.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/appconfig:&amp;lt;file&amp;gt;&lt;/strong&gt;&amp;nbsp;- Specify an application configuration file containing assembly binding settings&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong&gt;/moduleassemblyname:&amp;lt;string&amp;gt;&lt;/strong&gt; - Name of the assembly which this module will be a part of&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://renadee.blogspot.com/feeds/7953554531743892268/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4743799863012838944&amp;postID=7953554531743892268&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/7953554531743892268'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/7953554531743892268'/><link rel='alternate' type='text/html' href='http://renadee.blogspot.com/2013/12/visual-c-compiler-options.html' title='Visual C# - Compiler Options'/><author><name>Renjith P</name><uri>http://www.blogger.com/profile/05637493134397705488</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4743799863012838944.post-729680839013747315</id><published>2013-12-27T15:34:00.001+05:30</published><updated>2015-01-08T15:53:32.593+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="WCF"/><title type='text'>WCF: Contracts an Introduction</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;In WCF all services expose contracts. Now a question arises what is a contract?&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Contract is a platform neutral and standard way of describing what the service does. There are four types of contracts,&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Service Contracts&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Data Contracts&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Fault Contracts&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Message Contracts&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Here we will try to define and use of each contract type.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Service Contracts describe which operations the client can perform on the service. &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Data Contracts define which data types are passed to and from the service. WCF defines implicit contracts for built in types int and string, but we can easily define explicit&amp;nbsp; opt-in data contracts for custom types.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Fault Contracts define which errors are raised by the service and how the service handles and propagates errors to its clients.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Message Contracts allow services to interact directly with messages.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;We will look into each of these Contracts in later blogs.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://renadee.blogspot.com/feeds/729680839013747315/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4743799863012838944&amp;postID=729680839013747315&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/729680839013747315'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/729680839013747315'/><link rel='alternate' type='text/html' href='http://renadee.blogspot.com/2013/12/wcf-contracts-introduction.html' title='WCF: Contracts an Introduction'/><author><name>Renjith P</name><uri>http://www.blogger.com/profile/05637493134397705488</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4743799863012838944.post-1999621947932248054</id><published>2013-12-27T15:15:00.001+05:30</published><updated>2015-01-08T15:53:32.512+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="WCF"/><title type='text'>WCF : Addresses an Introduction</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Every WCF service is associated with an address which will be used by the client to access the service. A WCF address provides two important elements,&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Location of the service&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Transport Protocol&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Location service indicates that the name of the target machine, site or network; a communication port, pipe or queue and an optional specific path, or URI&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Transport Protocol also called as Transport Schema is used to communicate with the service. Normally WCF supports below transport schemas&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;HTTP or HTTPS&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;TCP&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;IPC&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Peer Network&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;MSMQ&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Service Bus&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Normally addresses have the below format,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;[base address]/[optional port]&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;At the same time the base address has the format,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;[transport]://[machine name or domain][:optional port]&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;HTTP addresses uses the http for transport and can also use HTTPS for secure transport. Typically uses http addresses with outward facing internet based services and we can specify a port also. If a specific port is not provided it will take the default port. For HTTP it is 80 and for HTTPS it would be 443. A sample http address is as follows,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;a href=&quot;http://localhost:8001/&quot;&gt;http://localhost:8001&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;TCP addresses uses net.tcp for transport and typically include a port number. If the port number is not provided the default for the tcp address is 808. A sample tcp address is as follows,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;net.tcp://localhost:8002/MyService&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;IPC Addresses or Inter Process Communication addresses use net.pipe for transport, to indicate the use of the Windows named pipe mechanism. In WCF, services that use IPC can only accept calls from the same machine. So we have to either provide the machine name or the localhost followed by a unique string for the pipe name. It is not possible for two named pipe addresses to share a pipe name on the same machine because we can open a named pipe only once per machine. A sample IPC address is as follows,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;net.pipe://localhost/MyPipe&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;MSMQ or Microsoft Message Queue addresses use net.msmq for transport. We must specify the queue name. If the queue is private we must provide the queue type as well. Samples for the MSMQ is as follows,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;net.msmq://localhost/private/MyService&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;net.msmq://localhost/MyService&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Windows Azure AppFabric Service Bus addresses use sb, http or https for transport and must include the service bus address along with the service namespace.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;sb://MyNamespace.servicebus.windows.net/&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Now you must have got an overall idea on different types of addresses used in WCF.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://renadee.blogspot.com/feeds/1999621947932248054/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4743799863012838944&amp;postID=1999621947932248054&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/1999621947932248054'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/1999621947932248054'/><link rel='alternate' type='text/html' href='http://renadee.blogspot.com/2013/12/wcf-addresses-introduction.html' title='WCF : Addresses an Introduction'/><author><name>Renjith P</name><uri>http://www.blogger.com/profile/05637493134397705488</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4743799863012838944.post-637522841195994190</id><published>2013-12-21T13:25:00.000+05:30</published><updated>2015-01-08T15:53:32.573+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="CRM 2011"/><title type='text'>CRM 2011 - Using Report Control to add a report to Dashboard</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;There can be scenarios where we have to create custom reports to the dashboards. This can be achieved easily using the custom tool Report Control. Download the report control solution from &lt;a href=&quot;http://reportingondashboard.codeplex.com/releases/view/99851&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;. &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Import the solution to our organization. &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Now keep the report ready in our organization either by creating a new report or by reusing an existing report. &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Get the report&#39;s GUID from CRM which needs to be added to the dashboard. Keep that handy for further use.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Whether you are planning to create a new dashboard or an existing dash board, add a new web resource to the dashboard. &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;In the properties window, add the web resource &quot;new_ReportControl&quot;. Give proper field name and properties for the web resource. &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;If &quot;Restrict cross frame scripting where supported&quot; and &quot;Pass record object type and unique identifier as parameters&quot; check boxes are checked, then uncheck them. &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;In the custom parameters field, add the GUID value for the report to be added.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Full article can be read &lt;a href=&quot;http://crmramblingsbysteven.wordpress.com/2012/04/24/using-the-dashboard-reporting-control-for-microsoft-dynamics-crm-2011/&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;. There is another approach for this same objective but it didn&#39;t work for me though. You can read the article &lt;a href=&quot;http://community.dynamics.com/crm/b/richardknudson/archive/2011/06/07/placing-reports-on-dynamics-crm-2011-dashboards.aspx&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;That&#39;s it we are done with the new report in our dash board.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Hope this helps !!!&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://renadee.blogspot.com/feeds/637522841195994190/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4743799863012838944&amp;postID=637522841195994190&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/637522841195994190'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/637522841195994190'/><link rel='alternate' type='text/html' href='http://renadee.blogspot.com/2013/12/crm-2011-using-report-control-to-add.html' title='CRM 2011 - Using Report Control to add a report to Dashboard'/><author><name>Renjith P</name><uri>http://www.blogger.com/profile/05637493134397705488</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4743799863012838944.post-5414891786027045804</id><published>2013-12-03T16:17:00.003+05:30</published><updated>2015-09-21T20:55:48.637+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Windows"/><title type='text'>Windows - How to delete a service which is no longer used?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;There can be scenarios where we have some services in the server which is no longer used. In such a scenario its better to delete the same. &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;For that what you can do is,&lt;/span&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Open the command prompt as administrator.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Type the command &lt;strong&gt;sc delete &amp;lt;service name&amp;gt;&lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Enter&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The service is deleted from the list.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;There are other options to do the same. But the above one helped me to delete the same. If you need to go for other options for any reasons please check &lt;/span&gt;&lt;a href=&quot;http://stackoverflow.com/questions/197876/how-do-i-uninstall-a-windows-service-if-the-files-does-not-exist-anymore/197941#197941&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;here&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Hope this helped you.&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://renadee.blogspot.com/feeds/5414891786027045804/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4743799863012838944&amp;postID=5414891786027045804&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/5414891786027045804'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/5414891786027045804'/><link rel='alternate' type='text/html' href='http://renadee.blogspot.com/2013/12/windows-how-to-delete-service-which-is.html' title='Windows - How to delete a service which is no longer used?'/><author><name>Renjith P</name><uri>http://www.blogger.com/profile/05637493134397705488</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4743799863012838944.post-7941559009541382919</id><published>2013-11-25T12:52:00.001+05:30</published><updated>2015-01-08T15:53:32.609+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="CRM 2011"/><title type='text'>CRM 2011 - Script loading to Client</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;What I understood was wrong from UR12 for CRM 2011. JScripts mentioned in the forms in a specific order was not loaded to the client in the same order. Its loaded in the order in which the same is received from the server. &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;There is no guarantee that the dependent scripts mentioned in the form may be loaded after the script which is calling the same. &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Thanks scott for this wonderful &lt;a href=&quot;http://community.dynamics.com/crm/b/develop1/archive/2013/11/02/crm-2013-script-loading-deep-dive.aspx&quot; target=&quot;_blank&quot;&gt;post&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://renadee.blogspot.com/feeds/7941559009541382919/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4743799863012838944&amp;postID=7941559009541382919&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/7941559009541382919'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/7941559009541382919'/><link rel='alternate' type='text/html' href='http://renadee.blogspot.com/2013/11/crm-2011-script-loading-to-client.html' title='CRM 2011 - Script loading to Client'/><author><name>Renjith P</name><uri>http://www.blogger.com/profile/05637493134397705488</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4743799863012838944.post-7017782788143145222</id><published>2013-11-25T12:20:00.003+05:30</published><updated>2015-01-08T15:53:32.587+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="CRM 2011"/><title type='text'>CRM 2011 - Hide the footer from notes in different entities</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Different entities have the notes in the form where the user can add, delete notes and also attach files. If the users are not giving proper titles for these notes then we could see that when notes are created there will be redundant data in the title and footer of the note, which is the name of the owner and the date when the note was created.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;This can be fixed, if required in two ways one way is to educate the users to give a proper title so that the redundant data can be removed. Second way is to hide the footer where the same data is displayed again. &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Second way is not a supported way in CRM 2011. But we can do this. This has some disadvantages though. &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;This can be implemented only (as per my knowledge, please let me know otherwise) when the form loads as the notes attribute cannot be modified or we cannot add any on change event for the same attribute. Because of which when the user adds a new note the footer will be visible for the new note and when the user deletes an existing note then all the hidden rows will be visible again. This will last until the form is reloaded so that our code is triggered.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Below is the code which I used to hide the row&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;function&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt; HideNotesFooter() {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;//Get the iframe which has the table row which needs to be hided.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;var&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt; iframe = window.document.getElementById(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: maroon; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: maroon; font-family: Calibri; font-size: small;&quot;&gt;&#39;notescontrol&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;//Get the inner document from the iframe object.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;var&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt; innerDoc = iframe.contentDocument || iframe.contentWindow.document;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;//Get the list of all elements inside the iframe having the class name &#39;noteHeader&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;var&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt; noteHeader = innerDoc.getElementsByClassName(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: maroon; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: maroon; font-family: Calibri; font-size: small;&quot;&gt;&#39;noteHeader&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;//Checks whether the noteheader contains any element or not. If it doesnt have any element trigger this function after sometime.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;if&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt; (noteHeader.length == 0) {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;setTimeout(DisableNotes, 1000);&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;} &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;//End if for length&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;else&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt; {    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;//If it has any element loop through them and hide the respective row from the table.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;for&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt; (i = 0; i &amp;lt; noteHeader.length; i++) {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Calibri; font-size: small;&quot;&gt;if&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt; (i % 2 != 0) {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;noteHeader[i].style.visibility = &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: maroon; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: maroon; font-family: Calibri; font-size: small;&quot;&gt;&#39;hidden&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;} &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;//End if for modulus&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;} &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;//End for loop&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;}   &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;//End else&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;} &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri; font-size: small;&quot;&gt;//Function End&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Calibri;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;I have used a call to the setTimeout function because some time I could see that the rows to be hided were not available when the script execution was happening.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Hope this helped you.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://renadee.blogspot.com/feeds/7017782788143145222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4743799863012838944&amp;postID=7017782788143145222&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/7017782788143145222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/7017782788143145222'/><link rel='alternate' type='text/html' href='http://renadee.blogspot.com/2013/11/crm-2011-hide-footer-from-notes-in.html' title='CRM 2011 - Hide the footer from notes in different entities'/><author><name>Renjith P</name><uri>http://www.blogger.com/profile/05637493134397705488</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4743799863012838944.post-736264683661148238</id><published>2013-11-05T19:51:00.003+05:30</published><updated>2015-09-21T20:55:48.646+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><title type='text'>JavaScript Errors</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;When our script attempts to perform an action that the system cannot execute a run time error occurs. It will be easy if we can identify the same from the number returned so that a meaningful user friendly message can be passed on to the end user.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Similar is the case for the syntax errors.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Below is the link to msdn site which will give a fair idea on these error numbers and the description.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;For Runtime error check &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/1dk3k160(v=vs.94).aspx&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;For Syntax errors check &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/6bby3x2e(v=vs.94).aspx&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://renadee.blogspot.com/feeds/736264683661148238/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4743799863012838944&amp;postID=736264683661148238&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/736264683661148238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/736264683661148238'/><link rel='alternate' type='text/html' href='http://renadee.blogspot.com/2013/11/javascript-errors.html' title='JavaScript Errors'/><author><name>Renjith P</name><uri>http://www.blogger.com/profile/05637493134397705488</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4743799863012838944.post-3559181401774674624</id><published>2013-10-18T23:19:00.002+05:30</published><updated>2015-01-08T15:53:32.533+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="CRM 2011"/><title type='text'>CRM 2011 - Getting entity name and Id using Javascript</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;There are different ways to get the entity information from the form using JScript. &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Let&#39;s say we need to get the information from within the form ribbon. We can get it with a simple statement as below,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;var entityName=Xrm.Page.data.entity.getEntityName();&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;This will return the logical name of the entity for the record. For example, if the record is a contact this will return &quot;contact&quot;.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;If we need to get the entity name from the Homepage ribbon, then we have to do it in another way. Follow the below steps to achieve this,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;ol&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;In the javascript add a parameter to accept this and pass the crmParameter &quot;SelectedControlSelectedItemReferences&quot;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;This will get us the below details, the JScript code would be like this.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;function GetDetails(selectedControlSelectedItemRefernces)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;font-family: Verdana;&quot;&gt;var Id = selectedControlSelectedItemRefernces[0].Id;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&amp;nbsp;&amp;nbsp; var Name = selectedControlSelectedItemRefernces[0].Name;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&amp;nbsp;&amp;nbsp; var TypeCode = selectedControlSelectedItemRefernces[0].TypeCode;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&amp;nbsp; var TypeName = selectedControlSelectedItemRefernces[0].TypeName;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;If the user has selected multiple records in the grid then loop the &quot;selectedControlSelectedItemRefernces&quot; object and get the records one after the other.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;If you are using ribbon editor you can refer to &lt;a href=&quot;http://msdynamicscrmblog.wordpress.com/2012/11/29/create-a-custom-ribbon-button-on-entity-homepage-ribbon-and-get-the-selected-record-in-dynamics-crm-2011/&quot; target=&quot;_blank&quot;&gt;this&lt;/a&gt; blog for a step by step process how to achieve this.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Within the form if we need to get the Id of the record then it is a straight way process,&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;var recordId = Xrm.Page.data.entity.getId();&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;This will return a GUID value for the record.&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://renadee.blogspot.com/feeds/3559181401774674624/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4743799863012838944&amp;postID=3559181401774674624&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/3559181401774674624'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4743799863012838944/posts/default/3559181401774674624'/><link rel='alternate' type='text/html' href='http://renadee.blogspot.com/2013/10/crm-2011-getting-entity-name-and-id.html' title='CRM 2011 - Getting entity name and Id using Javascript'/><author><name>Renjith P</name><uri>http://www.blogger.com/profile/05637493134397705488</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>