C#

Posts in this category.

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

Fixed contractResolver showed up when using Swashbuckle Swagger .NET 6

Apr 23, 2022

When using Swagger and I want to implement JsonPatchDocument to do Patch operation in my WebApi, I noticed the class can't be recognized automatically in the Swagger UI. The contractResolver object detected in SwaggerUI Below is a sample of my code for my Controller that uses...

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: Improve Performance using Partition Key

Mar 19, 2022

Do you know we can pass the partitionID parameter when doing CRUD to improve performance? The information I got from this documentation link. Today we will prove how what is the difference between using the partitionID and not using it. To collect the data, I'll run below code:...

Dataverse: Share Record Access

Mar 12, 2022

I have experienced the scenario where the Organization wants to implement strict record management where the requirement was to limit access based on the team. For example, if the owner of the record is Team A, the other Teams can't interact with it unless one of the members of...

Create a WebJob to Ensure Cache is Valid

Feb 26, 2022

Caching is one of the operations that we always do when building software. We put an object that will be faster to be retrieved to improve the performance of our software. But likewise, because it is a Software Architecture. Choosing one side will always have risks. If the system...

Dynamics CRM: To Set or Not To Set MaxConnectionTimeOut CrmServiceClient?

Feb 11, 2022

Do you ever wonder when using CrmServiceClient, why there is a setting for extending the MaxConnectionTimeOut? In my current company, I have faced a timeout issue when CRM process ExecuteMultipleRequest that contains 1000 of data. One thing that I know based on the return error,...