Category Archives: JavaScript

Applying Scripts on Business Process Flow controls in Dynamics CRM 2015

Introduction Anyone who would have tried using the api functions available to access the controls on the Business Process Flow to hide/lock in CRM 2013 would know that the function only worked if the control was on the current active stage on the form. Suppose you had 2 stages Develop and Propose and you had… Read More »

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 »