Dynamics CRM Client Scripting: addCustomFilter and addPreSearch

The most common requirement that usually we need to apply is filtering the lookup dynamically based on the state of the current attribute. For example, you have a Custom Approval entity (table) that got a lookup to Customer and Custom Document. Then when the user on the Custom Approval screen, you want to filter the Custom Document based on the Level field (column) that the user … Continue reading Dynamics CRM Client Scripting: addCustomFilter and addPreSearch

Advertisement

How To Setup Bootstrap On Your PCF Project

How many of you already know about PCF (PowerApps Component Framework) control? A framework that lets us (developer) create customize UI to be used in PowerApps. Because we are talking about customized UI and I'm a pure programmer, make use of Bootstrap is always a way to go for me. Bootstrap can help me more focus on … Continue reading How To Setup Bootstrap On Your PCF Project

Dynamics CRM Model-Driven Apps: Strategy for Multiple Environment + Solution Layering in Javascript

If you ever make a product based on Dynamics CRM and needs to use multiple environments + solutions for multiple projects. But still willing to achieve tidy + clean solutions when registering events. Here is my recommendation on how to do it without needing to heavily rely on Form registering (no need afraid that the … Continue reading Dynamics CRM Model-Driven Apps: Strategy for Multiple Environment + Solution Layering in Javascript

Exploration: Dynamics CRM Client Scripting – Xrm.Utility.lookupObjects

Do you know that in Xrm.Utility object now got a nice function called lookupObjects? When we called this function, it will help us open a nice dialog that lets us choose (single or multiple) records and return to us an array of the selected data. We can pass lots of combinations of parameters to make the dialog more … Continue reading Exploration: Dynamics CRM Client Scripting – Xrm.Utility.lookupObjects

Dynamics CRM Model-Driven Apps: How to use executionContext.setSharedVariable and executionContext.getSharedVariable

In my blog post, I had explained how to use setSharedVariable and getSharedVariable functions for plugin development that you can read here. When I check on the documentation in the Client API reference, we also can found there are the same functions that we can use for front-end development (JavaScript) in the executionContext. But the … Continue reading Dynamics CRM Model-Driven Apps: How to use executionContext.setSharedVariable and executionContext.getSharedVariable

My Attempt to Implement Data Concurrency In Dynamics CRM

One of the hardest things to implement in Dynamics CRM is data concurrency. When multiple people are updating the same data, by default CRM will still allow it. But there is always a scenario where we want to prevent this thing and there is no simple way to implement it in various ways (using out-of-the-box … Continue reading My Attempt to Implement Data Concurrency In Dynamics CRM

Dynamics CRM Model-Driven Apps: Implement Niam.Xrm.Client and Niam.Xrm.Client.Test

Now we go to the last part of the tutorial for Front-end Customization. We will implement Niam.Xrm.Client and Niam.Xrm.Client.Tests on the project we set up earlier. Niam.Xrm.Client is a framework wrapper for Xrm object that focuses on make customization easier, while Niam.Xrm.Client.Tests will mainly focus on Xrm.webApi mock objects and testing related helpers. Both packages are in beta versions but … Continue reading Dynamics CRM Model-Driven Apps: Implement Niam.Xrm.Client and Niam.Xrm.Client.Test

Dynamics CRM Model-Driven Apps: Setup Testing Environment with chai, Mocha, xrm-mock, and SinonJS

As Developer, we suppose adapt ourselves to a better working framework or mindset. Following Test-Driven Development (TDD) mindset, for example, enable us to work more effectively in the long run, compare to not using it. Hence making unit tests is has become a crucial part (at least for me), and this post will explain how … Continue reading Dynamics CRM Model-Driven Apps: Setup Testing Environment with chai, Mocha, xrm-mock, and SinonJS

Tips Model-Driven Apps Javascript: How to trigger Custom Method After Saving

Have you ever had a scenario that needs to disable all the controls in the UI after data is successfully saved? Let's say after the document State changed to Approved, then we need to disable some of the attributes in the form? If yes, then this post is about my simple tips to achieve that … Continue reading Tips Model-Driven Apps Javascript: How to trigger Custom Method After Saving

Dynamics CRM Model-Driven Apps: Developing Frontend Code with Typescript, @types/xrm and webpack

First question: Why TypeScript? We know what is JavaScript programming does. Programming language that sometimes leads us to confusion because its too dynamics. While TypeScript as JavaScript superset trying to fix the whole weakness that it can lead us into. TypeScript offers more strict language (data type) and supports IntelliSense which is easier for a … Continue reading Dynamics CRM Model-Driven Apps: Developing Frontend Code with Typescript, @types/xrm and webpack