Latest posts
Notes on code and the things I build.
Architecture
, C#
, Clean Code
, dynamics-crm
, powerplatform
, tips
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...
C#
, dynamics-crm
, powerplatform
, tips
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...
C#
, dynamics-crm
, powerplatform
, tips
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...
dynamics-crm
, powerplatform
, tips
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...
C#
, dynamics-crm
, powerplatform
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
, powerplatform
May 14, 2022
Do you know that we have the Virtual Connectors in Dataverse (Preview) solution in the AppSource that can let us configure and create Virtual Entity easily? We can do the CRUD (Create-Read-Update-Delete) operation directly (I tried the SQL Server connection) and it works...
C#
, dynamics-crm
, powerplatform
, tips
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...
C#
, Clean Code
, dynamics-crm
, powerautomate
, powerplatform
, tips
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...
.NET
, C#
, tips
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...
Clean Code
, tips
Apr 16, 2022
When I learned to implement authorization in my WebAPI and tested it in Swagger, I noticed the "Available authorization" page was empty (after clicking the lock icon): Empty Authorization dialog For those who don't know Swagger, you can think of this as a framework that offers a...