Category Archives: JavaScript

JavaScript: “Execution Context” provides Form Values on Web as well as UCI in Dynamics 365 v9.0

Introduction: No doubt, Microsoft Dynamics 365 v9.0 surprised us with the UCI feature which provides a generic user interface to users, this is about UI but behind the scene for developers also Microsoft provided “Execution Context” object which is a collection of array. Recently we have a business requirement to perform some action using Custom… Read More »

Error Qualifying Lead in Dynamics 365 Customer Engagement

Issue: When qualifying a lead in CRM, we receive the following error message. “Unable to get property ‘getUserPrivilege’ of undefined or null reference Script” Reason: This was a customized system and we noticed the Company and Title field were missing from the lead form. Solution: Add the fields back on the form, and if required… Read More »

Resolve $ undefined error for CRM HTML web resource

It is a common requirement to integrate HTML web resource in CRM form or open an HTML web resource as a separate window to have the additional user interface. JQuery library is a common library to perform the script related operation and even to deal with HTML controls in such scenarios. Sometimes we receive error… Read More »

Modify OOB ribbon button for Specific Activity Type Entity

Introduction: We recently had a business requirement where we wanted to hide the ‘Mark Complete’ OOB button from the home page of Activity entity. However, we wanted to hide this button for Service Activity entity and not for other activity types like Task, Appointment, Email, etc. ‘Mark Complete’ is a button on the Home Page… Read More »

Hide Add Button on a Subgrid by Applying Custom JavaScript Rule

Recently we came across a scenario where we needed to show and hide the subgrid add button on satisfaction of a certain condition. We had to take the help of Ribbon Workbench to achieve the same. Working: Install Ribbon workbench in your Dynamics CRM/365. Create a solution with the entity whose subgrid button you want… Read More »