Clean Code

Posts in this category.

Creating Better PCF Component – Part 2

Nov 23, 2020

When I was writing this post, I felt the environment that I set up did not enhance my ability to write code. The reason for this is that I use jsdom, which is a mock object for the HTML component. Because it is not a real object of HTML, my focus has been changed to the test code...

Dynamics CRM Model Driven Apps: Simple Tips for registering events in Form

Nov 6, 2020

I started using Dynamics CRM in version 2013. Back then, we all know if we need some retrieving function in JavaScript, we needed to create our library (HttpRequest) or use XrmSvcToolkit. Even in XrmSvcToolkit we actually can set async to true, our tendency will straight to use...

Dynamics CRM Model Driven Apps: Make use of addOnLoad and removeOnLoad

Oct 30, 2020

In this post, we will learn about how to use formContext.data.addOnLoad and formContext.data.removeOnLoad. Generally, formContext.data.addOnLoad function is totally the same as below function (register manually from the form): So the basic question that we will ask is why we need...

Dynamics CRM CE: TDD Plugin Development in Action – Part 2

Jul 3, 2020

For the second part of this blog post series, we will create a more advanced scenario operation. We will create business logic for the SalesOrder to calculate total orders (SalesOrder.Amount and Sum of SalesOrderDetail.Quantity) per Customer in 1 month (based on...