Dataverse: Create Custom API to get Email Content based on FetchXml and Email Template

This week, I get a task to update Email Content that is being sent from Power Automate. The existing logic was retrieving data from Dataverse > then populating the data manually (if you need to get lookup data, then you need to have Parse JSON action) > then setting the content with the correct variable … Continue reading Dataverse: Create Custom API to get Email Content based on FetchXml and Email Template

Advertisement

Dataverse: How to use RetrieveEntityChangesRequest to synchronize data with externals system

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

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

Let’s try Dataverse Dependent Assemblies for Plug-ins

For a long time, Developers for Dataverse don't have an official way to use third-party libraries when creating plugin(s). If we want to reuse existing code, the only official way to do it was use the Shared Project which is limited to the code that we own + the IntelliSense in Visual Studio not working … Continue reading Let’s try Dataverse Dependent Assemblies for Plug-ins

Dataverse: Comparing Create vs ExecuteMultipleRequest vs Azure Service Bus – ServiceBusTrigger

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! For the code itself, this is … Continue reading Dataverse: Comparing Create vs ExecuteMultipleRequest vs Azure Service Bus – ServiceBusTrigger

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

Enforce ConcurrencyBehavior on DataverseServiceClient

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 Dataverse itself, we have UpdateRequest and DeleteRequest messages that have ConcurrencyBehavior … Continue reading Enforce ConcurrencyBehavior on DataverseServiceClient