Author Archives: Abbas Khan

How to generate proxy from wsdl

How to generate proxy from wsdl There are several ways of generating a proxy from WSDL in C# however one below might help 1) First get wsdl file (abc.cs)2) Run the command below using Command Prompt wsdl /l:cs /protocol:SOAP /o:C:\Development\WSDL\Reference.cs … Read More

Creating a WCF service to use with CRM HTML web resource

In this example we are going to create a WCF service which will be later consumed using HTML web resource (AJAX call) in CRM 2015/2013. First we need to create a simple Class library project in Visual Studio 2013. Give … Read More

CRM Call WCF Service in HTML Web Resource using AJAX

Recently I have worked on arequirement where I had to write a service which was going to be used by different clients and had to call same service using HTML web resource in CRM 2015.To achieve this first of all … Read More

wcf service wsdl domain name

When creating a new WCF and hosting locally or dev/prod server you might come across an issue where WSDL will display a URL with computer/local name which is different to URL of service Fro example actual URL might be And … Read More

Date format issue in CRM using JavaScript

Sometimes it isn’t easy to deal with Date format and comparing a date in JavaScript in MS Dynamics CRM.Below is a simple function which takes a UTC date and then return back into a date only in formate YYYYMMDD.In case … Read More

Get guid entity id in crm 2015 url

It was easy to get Guid Id of a record on form as it was being displayed in URL however in CRM 2013/2015 it does not. Sometimes we need an id of record from URL so below is a simple … Read More

Hide Show Ribbon button with Ribbon Workbench and JavaScript

Few simple steps to hide or show a ribbon button depending on the value of a field on a form. Open your solution which contains entity you need to add button to using Workbench Select Entity (in my case Task) … Read More

Get and Set value using ODATA End Points

Below is a sample code which gets data from a custom entity by passing name of the record – In code below, I am triggering function ‘CheckAndSetOutcode’ on change of a field on a form (post code in this case) … Read More

How to get data by REST and display as a warning message on CRM form

In this post we are going to get an attribute value from Account entity on Order form and then display value on Order form as a Warning message (from CRM 2013 we can display wanting, info and error messages at … Read More

Filter Look Up on Contact on Account basis where account is parent or contact is primary contact on account

In this scenario, I have a requirement where I user wants to select Account on Opportunity entity On selection of account user only wants to see those Contacts which are child records of selected account or a contact which is primary contact … Read More