Category Archives: JavaScript

Execute a workflow using Xrm.WebApi.online.execute method via JavaScript in Dynamics 365 CRM v9

Introduction In this blog, we are going to create a request using ExecuteWorkflow action and would execute the request that would execute a custom workflow. This approach would eliminate the need to create an Ajax request and is supported across web client, UCI and Mobile. For demonstration purpose, we have created a custom workflow. This… Read More »

Retrieve Dynamics 365 CRM data in Portal by calling Odata using JavaScript

Introduction When user needs to display all the record using the “account” entity on the portal page then he can perform the retrieve operation by calling OData query using JavaScript. Working First we will create the entity list. On the entity list there is tab “OData” where we need to fill the information like “Entity… Read More »

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 »