-
Continue reading →: Passing data between web resources CRM 2013
Assume you have 2 HTML web resources on your CRM form and you want to pass data from 1 resource to another, below are the steps. In my example I have 2 HTML pages with a Textbox and Button. On Button click, I am reading the value from current…
-
Continue reading →: Using ‘No Lock’ in FetchXML CRM
In one of our requirement we are retrieving records using FetchXML and we observed fetch taking long time when there are more concurrent user access. Reason: Records are being updated by other users when I perform Fetch Fix : Set “no-lock=’true’” in the FetxhXML as below <fetch mapping=’logical’ no-lock=’true’> </fetch>…
-
Continue reading →: Aggregate Query Record Limit Exceeded – Exception in CRM
I was getting below exception when using FetchXML aggregation to compute Average of one of my entities field. AggregateQueryRecordLimit exceeded. Cannot perform this operation. My Fetch XML : <fetch distinct=’false’ mapping=’logical’ aggregate=’true’> <entity name=’new-expenses’> <attribute name=’new_gross’ alias=’gross_avg’ aggregate=’avg’ /> </entity> </fetch>”; Reason : FetchXML Aggregation has a limitation, by default…
-
Continue reading →: Exclude namespaces from XML using Jscript
In one of my requirement I had to parse XML and find node values. My XML looks as below <NS1:Envelope xmlns:NS1=“http://schemas.xmlsoap.org/soap/envelope/“> <QueryBalanceResult> <NS1:AvailableCredit>17400</NS1:AvailableCredit> </QueryBalanceResult> </NS1:Envelope> Since the XML has got namespaces I need to exclude namespaces before I find the node. Below is the logic to exclude namespaces var xmlWithNamespaces={Your…
-
Continue reading →: Stack overflow error while disposing object – C#
I have a class “ABC” which implements “IDisposable” interface and having below Dispose method. Public Class ABC : IDisposable { public void Dispose() { this.Dispose(true); } } When I run the application I was getting “Stack Overflow” error because the Dispose() method getting called recursively and went in to an infinite loop.…
-
Continue reading →: Make your WCF service’s Operation/Method Fire and Forget
There are cases when an operation has no returned values and the client does not care about the success or failure of the invocation. To support this sort of fire-and-forget invocation, WCF offers one-way operations. It’s simple to implement. We just need to add “IsOneWay” property to ‘true’ to the…
-
Continue reading →: HTTP Error 404.17 – hosting Service in IIS
Recently when I hosted a web service project in IIS and browse that, I got below error. HTTP Error 404.17 – Not Found The requested content appears to be script and will not be served by the static file handler. Fix : In my case I missed a simple step,…
-
Continue reading →: Expecting element from namespace encountered with name namespace – Error DataContractSerializer
I have a REST enabled WCF service with Method GetFruits() which return list of Fruit objects serialized in XML format. My ‘Fruit’ class defined as below [DataContract] public class Fruit { string name = string.Empty; [DataMember] public string Name { get { return name; } set { name =…
-
Continue reading →: Check Entities attribute type – CRM Late Binding
Recently somebody posted a question in my blog, whether there is a way to determine the entities ‘Attribute Type’ instead of making Organization service call and read the metadata. Assume you have a Plug-in you made a ‘Retrieve’ call using Late Binding and, you got Entity object. Below is easy way…


