dynamics-crm
Posts in this category.
Jul 30, 2022
Today we will learn how to write code for bulk create records (e.g for custom data migrating purposes). I will give two methods (plus with different settings to see if they have positive differences) and compare the time to see the best results. Without further a do, let's go!...
Jul 23, 2022
In this blog post, we will learn how to use ExecuteByIdUserQueryRequest and ExecuteByIdSavedQueryRequest. Functionality-wise, these two functions have the same purpose: querying data from Dataverse and returning the result in string XML based on public/personal views that we...
Jul 16, 2022
When you are using DataverseServiceClient, we can see the constructor where we can pass an instance of ILogger. The purpose of this, of course, is to get more information regarding what is happening in our system (you also can monitor the performance). Depending on the scenario...
Jul 9, 2022
In this blog post, we will learn how to make Azure Functions for hosting APIs that will be used to connect with Dataverse (via Dataverse Service Client) and possibly other functions. Even though in Dataverse we actually can create custom APIs to do the same thing (but we need to...
Jul 2, 2022
When I scanned Microsoft.Xrm.SDK namespace from Visual Studio, I found an exciting extension in the ContextExtensions class. In there, we can discover InputParameterOrDefault<T> that accepts a string parameter. Without further ado, let's go to my testing about it! Demo 😁 I...
Jun 25, 2022
Celebrating the GA of DataverseServiceClient, let's talk about how to implement concurrency (if there are two users updating the same data at the same time, the system must ensure only the first update success and make fail the other) using an out-of-the-box feature. From...
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...
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...
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...
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...