dynamics-crm

Posts in this category.

Create Field Security Profile Programmatically in Dataverse

Jun 18, 2022

Recently, my friend (Low Ming Hua) told me about an interesting scenario related to the 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 modified it!). For those who don't know, we...

How to test service protection API limits in Dataverse

Jun 10, 2022

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...

How to use the getUserPrivilege function in Dataverse Client API

Jun 4, 2022

The getUserPrivilege is a function that will return canRead, canCreate, and canUpdate. This function correlated with the Field Level Security feature making it suitable to check if users have enough privilege to run our custom function on Javascript. For example, we have below...

How to use OnExternalUpdated for Dataverse Virtual Entity

May 21, 2022

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...

Dynamics CRM: Populate Data using InitializeFrom Function

May 7, 2022

Do you notice when we create a Lead and qualify it in Dynamics CRM, the out-of-the-box feature will convert the Lead to Contact (all the data that was input in Lead, automatically populated in the Contact)? And sometimes, we are also being requested to make the same feature...

Create Dataverse Record and Set SharedVariable From PowerAutomate

Apr 29, 2022

In Dataverse, we can add several additional parameters when we request something that you can check in this documentation. And from all the optional parameters provided, my favorite is the "Tag" parameter that allows us to pass SharedVariable to the Plugin. In the documentation...

Dataverse: Create GetLastDateOfMonth Function in Custom Connector

Apr 9, 2022

Do you know we can write Code (Preview) in Custom Connector? In this blog post, we will make a simple function that will return the last date of the month to try the feature. Without further ado here are the steps! Go to make.powerapps.com > Dataverse > Custom Connectors > on the...

Dataverse: Duplicate Detection Rules vs Keys

Mar 25, 2022

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...