In Dataverse, we have lots of ways to notify the external system about the changes that happened in Dataverse individually (per row data). We have Azure Aware Plug-in, WebHooks, and we also can write a custom plugin that will call HTTP operations. But in the world of Software Architecture, there is always a pro and … Continue reading Dataverse: How to use RetrieveEntityChangesRequest to synchronize data with externals system
Tag: modeldrivenapps
Dataverse: Ways to Generating NuGet Package to be used in Dependant Assembly plug-ins
With all the crazy changes happening in Power Platform technologies, especially Dataverse/Model-Driven-Apps. We must admit, that the plugin development has not really changed. So I believe most organizations still use plugin projects that created so long time ago and when the Dependant Assembly plug-ins (preview) come to GA. Then they will start to migrate the … Continue reading Dataverse: Ways to Generating NuGet Package to be used in Dependant Assembly plug-ins
Dataverse: How to use ExecuteByIdUserQueryRequest and ExecuteByIdSavedQueryRequest
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 define in the system. For example, I created the below Personal View to get the Contact data: … Continue reading Dataverse: How to use ExecuteByIdUserQueryRequest and ExecuteByIdSavedQueryRequest
Enable Log instantly by passing ILogger in DataverseServiceClient
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). And depends on the scenario that you need, you can log the information … Continue reading Enable Log instantly by passing ILogger in DataverseServiceClient
How to make Azure Functions + Dataverse Service Client
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 merge third-party libs if any), … Continue reading How to make Azure Functions + Dataverse Service Client
How to use InputParameterOrDefault method in The Dataverse Plugin
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 a do, let's go to my testing about it! Demo 😁 I created a WebApi (testing) with lots of parameters like the below (I created … Continue reading How to use InputParameterOrDefault method in The Dataverse Plugin
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