Category Archives: JavaScript

Support to open an Entity form in a new Window in Dynamics CRM 2015 SP1

Introduction: Every CRM update comes with a lot of goodies for both the developers and the end users, so Dynamics CRM 2015 SP1 was not different. One of such feature is opening a record in a new window. While most of you`ll think, what`s so great in this, we have been doing this since CRM… Read More »

Querying More than 5000 records in Dynamics CRM

Introduction: There are multiple ways provided in Dynamics CRM SDK to query and read data like Using ODATA Using FetchXML Using Query object ODATA has a limitation where it can return only 50 records at a time. You can ofcourse query more than that but it would be in batches of 50 records at a… Read More »

How to Open Quick Create form in Dynamics CRM 2015 Online Update 1

You might be aware of how to open CRM entity form using javascript function that was introduced in Dynamics CRM 2013 i.e. Xrm.Utility.openEntityForm() If you are not then you can refer our blog about this feature here. We use openEntityForm function to open blank entity form or entity form with pre populated values. In CRM… Read More »

How to show Filtered Lookup Dialog in Dynamics CRM through Script

We had a requirement where in we were supposed to show a Filtered Custom Lookup on form load. By Filtered Custom Lookup, it meant that we were supposed to create a Lookup dialog similar to CRM Filtered lookup (Filtered Lookup value changes on the basis of other Lookup on which it is dependent) dialog. The… Read More »

Accessing Composite Controls Programmatically using Script

You might have disabled normal controls programmatically many times but while disabling Composite Controls programmatically we get stuck. We don’t know how to access the control and going through the conventional method doesn’t yield us the expected result. In that case, what should we do? How to achieve the expected result? Like this, we face many… Read More »

Check attribute type/formats in CRM 2011 javascript.

Now we can check the attribute formats in CRM java script. To do this you just need to use the function “getFormat”. This function returns a string value that represents formatting options for the attribute. You can refer the below code to check the format of different types of attributes. functionGetFormatOfAttributes() {     var attributeFormat;… Read More »

Supported ways of accessing URL addressable Forms/Reports Scripts.

While using CRM there may be conditions in which user wants to open forms and reports programmatically. For this we can write the scripts which will open the forms and reports. Open CRM forms using script: The form can be open using openEntityForm(); method.           Syntax :  Xrm.Utility.openEntityForm(name,id,parameter);   Parameters :   Ø  name: (Required… Read More »

Update the Parent Silverlight Grid from the CRM form that is spawns.

We were working on the Silverlight REST Editor sample that is available in SDK. We added a hyperlink to that grid that would open the CRM Contact form for the selected contact. This would allow users to check in further details of the contact. The users can also update the fields on the contact form… Read More »