Create Field Security Profile Programmatically in Dataverse

Recently, my friend (Low Ming Hua) told me about an interesting scenario related to Field Security Profile. He needs to enable lots of attributes and set the Field Permission to specific teams (he also shared with me his code and I modify it!). For those who don't know, we can enable Field-level security to control … Continue reading Create Field Security Profile Programmatically in Dataverse

How to test service protection API limits in Dataverse

When I read this documentation about Service protection API limits, I was curious about the easiest way to get the error to validate the code in the documentation and enhance it. I read the documentation and found out about Dataverse search, which has a stricter policy (one request per second) which means it is easier to test. Service protection … Continue reading How to test service protection API limits in Dataverse

How to use the getUserPrivilege function in Dataverse Client API

getUserPrivilege is a function that will return canRead, canCreate, and canUpdate. This function correlated with the Field Level Security feature makes it suitable to check if users have enough privilege to run our custom function on Javascript. For example, we have below customization on formOnLoad: var BlogJs = BlogJs || {}; (function() { this.formOnLoad = function(executionContext){ onLoadCustomerId(executionContext); setValueIcNumber(executionContext); }; var onLoadCustomerId … Continue reading How to use the getUserPrivilege function in Dataverse Client API

How to use OnExternalUpdated for Dataverse Virtual Entity

When we have already set up a Virtual Table/Entity in the Dataverse, sometimes there is a scenario when a data is being updated in the source system, it also needs to trigger the Dataverse Event (that contains our custom business logic). Today, we will learn how to enable Virtual Tables to support Dataverse events. In the … Continue reading How to use OnExternalUpdated for Dataverse Virtual Entity

Dataverse: Duplicate Detection Rules vs Keys

There are several ways to make your Dataverse data as clean as possible. Out-of-the-box, you can create alternate keys or you can implement Duplicate Detection Rules. Or you can implement Custom Validation on the Plugin to achieve more dynamic conditions (you can write any validation logic that you want). Today we will learn the out-of-the-box features (alternate keys … Continue reading Dataverse: Duplicate Detection Rules vs Keys

Dynamics CRM: addOnLookupTagClick and removeOnLookupTagClick

Today we will learn simple methods that are related to the datatype lookup on CRM: addOnLookupTagClick and removeOnLookupTagClick. Basically, addOnLookupTagClick is a function to register an event when the user is clicking the lookup tag value. Click the Lookup Tag value From the image above, if we click the lookup tag value and we register the events using addOnLookupTagClick, those events will be … Continue reading Dynamics CRM: addOnLookupTagClick and removeOnLookupTagClick

Dynamics CRM: Create Custom Autonumber Plugin Using Azure SQL Sequence

In this blog post, I reviewed the Auto Number attribute that already can handle the common scenario. There is a way to give a simple conditional Auto Number from Nishant Rana that you can read here. But what if we want to implement a more complex scenario to generate the Auto Number part for instance we … Continue reading Dynamics CRM: Create Custom Autonumber Plugin Using Azure SQL Sequence

Dynamics CRM Entity Relationship Behavior Explained

Let's talk about Dynamics CRM Entity Relationship behavior! There are several behaviors in Dynamics CRM that we can apply to fit our requirements. With this blog post, I hope we can learn together about those options.  Create a lookup will automatically create a relationship But first, we need to understand the entity relationship. When we … Continue reading Dynamics CRM Entity Relationship Behavior Explained

Dynamics CRM Model-Driven-Apps: formContext.data.entity.addOnPostSave vs modified_OnChanged

What is the way that you used in Dynamics CRM to call the javascript method after saved the entity? For example, after the record is saved, you want to re-run again the form_onLoad function so you can see the latest state of your controls (set required/hide). Or probably you want to open WebResource or add Form Notification to the user. Here, … Continue reading Dynamics CRM Model-Driven-Apps: formContext.data.entity.addOnPostSave vs modified_OnChanged

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