Featured

Back to Basics # 70: Run JavaScript from Ribbon WorkBench in Dynamics CRM

Introduction: There are many projects which works on earlier versions of Microsoft Dynamics CRM, so to call a JavaScript function from a new custom button that was kept on an entity specific Home Page Grid/Main Form’s Tab / SubGrid Main Tab we must use Ribbon Work Bench extension inside Dynamics Environment. As an example, contact …

Continue reading Back to Basics # 70: Run JavaScript from Ribbon WorkBench in Dynamics CRM

Featured

Back to Basics # 69: Usage of Parameters from Modern Command Designer in Dynamics CRM

Introduction: During certain scenarios we must pass parameters from the modern command designer so that they can be used inside JavaScript. In Classic Version of CRM, we have the option to pass execution context as first parameter under handler properties for a JavaScript type (Library)Webresource so that it can be used as a form context …

Continue reading Back to Basics # 69: Usage of Parameters from Modern Command Designer in Dynamics CRM

Back to Basics # 71: Filter SubGrid Using a Webresource in Dynamics CRM

Introduction: There was a requirement to filter records in a subgrid through code without creating a separate View for a record in Dynamics CRM . To achieve this functionality we can leverage SetFilterXML attribute that was present on formcontext object of CRM Form.As an example for a selected account , related contacts for an account …

Continue reading Back to Basics # 71: Filter SubGrid Using a Webresource in Dynamics CRM

Back to Basics # 68: Run JavaScript from Modern Command Designer in Dynamics CRM

Introduction: During certain scenarios we must call JavaScript from Command bar present in a ribbon for every Dynamics CRM Form. As an example, contact main form was used in a model driven app to explain this scenario. Step 1: Login to the required environment and select required solution [Contact Customizations Solution in this case] as …

Continue reading Back to Basics # 68: Run JavaScript from Modern Command Designer in Dynamics CRM

Back to Basics # 67: Working with External API inside Html Webresource in Dynamics CRM

Introduction: During certain scenarios we must integrate external API inside Dynamics CRM. As an example, a Wikimedia free api was used to explain this. Step 1: Login to the required environment and select required solution [Contact Customizations Solution in this case] as shown in the   below figure. Step 2: After Step 1, create a Webresource …

Continue reading Back to Basics # 67: Working with External API inside Html Webresource in Dynamics CRM

Back to Basics # 66: Working with a Html Webresource in Dynamics CRM

Introduction: During certain scenarios we must build a custom html to show data from Dynamics CRM as per customer requirement. As an example, a separate tab was shown on contact form to show selected contact’s Account Address details in the below Step 1: Login to the required environment and select required solution [Contact Customizations Solution …

Continue reading Back to Basics # 66: Working with a Html Webresource in Dynamics CRM

Back to Basics # 65: Pass Parameters to a Webresource in Dynamics CRM

Introduction: During certain scenarios we must send some parameters to a Webresource. To achieve this we must make use of comma separated list of parameters option that is present at event level of an form. As an example contact form was taken and passed first name logical name as parameter to get to know about …

Continue reading Back to Basics # 65: Pass Parameters to a Webresource in Dynamics CRM

Back to Basics # 64: Get SubGird Record Count with Webresource in Dynamics CRM

Introduction: During certain scenarios we must get total records count present in a sub grid. To achieve this functionality explicit logic should be written using JavaScript with form controls that are available on the form. Contact form with account sub grid was required and Contact record was used to explain this functionality. Step 1: Login …

Continue reading Back to Basics # 64: Get SubGird Record Count with Webresource in Dynamics CRM

Back to Basics # 63: Make All Form Fields as Read-only with Webresource in Dynamics CRM

Introduction: During certain scenarios we must make all CRM form fields as read-only. To achieve this functionality explicit logic should be written using JavaScript with form controls that are available on the form. Contact form was used to show this functionality. Step 1: Login to the required environment and select required solution [Contact Customizations Solution …

Continue reading Back to Basics # 63: Make All Form Fields as Read-only with Webresource in Dynamics CRM

Back to Basics # 62: Retrieve Environment Variable Value with Webresource in Dynamics CRM

Introduction: Applications often require different configuration settings or input parameters when deployed to different environments. Environment variables store the parameter keys and values, which then serve as input to various other application objects. Separating the parameters from the consuming objects allows you to change the values within the same environment or when you migrate solutions …

Continue reading Back to Basics # 62: Retrieve Environment Variable Value with Webresource in Dynamics CRM