tips

Posts in this category.

Dynamics CRM CDS: The Benefit of SharedVariables

Oct 16, 2020

Have you ever heard about SharedVariables? SharedVariables is an object in IPluginExecutionContext that allows us to set Dictionary (Key-Value) data to be used in the next event execution pipeline. Before, this object was very powerful. We can share SharedVariables across...

Architecture: Don't Marry The Framework

Feb 5, 2020

I've read a book by Robert C. Martin book titled Clean Architecture: A Craftsman's Guide to Software Structure and Design and was amazed by one statement in the book: Don't marry the framework. Robert C. Martin Based on Uncle Bob's opinion, coupling a third-party library directly...

Extension for Cleaner Code

Aug 5, 2019

The extension method in C#, VB, or F# is a static method that accepts this modifier of TInput. The method can be either void or return value. From the MSDN definition, Extension methods enable you to "add" methods to existing types without creating a new derived type,...

Dynamics CRM 365: Set Parent-Child Mapping From Correct Relationship

May 17, 2019

Let's say you have Entity Master and Entity Child. Then you want to have a scenario like from the master you want to have two subgrids. If you click the button add on subgrid 1, you want to fill in Child.Master1 and then click the button add on subgrid 2, you want to fill in...

Dynamics CRM 365: WebResource Dependencies

Mar 18, 2019

The common routine that we will do in custom RibbonButton is adding the library that we want to use. Let's say we have a function onCallButton on JavaScript A. But inside the function onCallButton, we have called another JavaScript B. Hence we need to register JavaScript B to be...

TypeScript in Dynamics CRM CE

Mar 6, 2019

JavaScript sometimes makes me stressed as a developer because of its dynamic nature. You can assign whatever value on the JavaScript object, change it into another type and it will not throw an error. Therefore TypeScript will help you so much because of its strictness. In this...

Dynamics CRM: QueryExpression and how to boost the performance!

Dec 11, 2018

In my company where I work, we have a custom program that will process big load data. Per running, it can process around 50.000 records. The average finished can be more than 3 hours ++. After I check, one of the things that make this slowness is because of the retrieving...

C# yield return 101!

Nov 29, 2018

One of the basic tasks that usually I do is getting data from the database, changing it into another object, and then processing it.For instance, if you have this data: var details = new[] { new Person {TypeId = 1, Name = "Dafid", Amount = 1000m}, new Person {TypeId = 1, Name =...

Dynamics CRM: Don't use setRequiredLevel("always") manually!

Oct 15, 2018

On our customization, it is very common if we disable some of the attributes. But when a specific attribute changes, we want to set automatically the value of the disabled attribute and save that value in our database. The problem is CRM will skip all the disabled attributes and...

About Cyclomatic Complexity

Sep 21, 2018

I read one of the blog posts in dev.to about this Cyclomatic Complexity and I couldn't resist also not talking about this one. Because I see a lot of programmers making this mistake without knowing it. So just today I checked my email and saw there is an automatic email...