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

Dataverse: Create GetLastDateOfMonth Function in Custom Connector

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 top right hit + New custom connector > Create from blank option: … Continue reading Dataverse: Create GetLastDateOfMonth Function in Custom Connector

Dataverse: Duplicate Detection Rules vs Keys

There are several ways to make your Dataverse data as clean as possible. Out-of-the-box, you can create alternate keys or you can implement Duplicate Detection Rules. Or you can implement Custom Validation on the Plugin to achieve more dynamic conditions (you can write any validation logic that you want). Today we will learn the out-of-the-box features (alternate keys … Continue reading Dataverse: Duplicate Detection Rules vs Keys

Dynamics CRM: Implement Retry Policy using Polly

Lately, I'm still actively thinking about designing a system that also considers error-proofing as part of the feature. For example, we want to ensure the transaction that we will execute is successful in 3 times execution. Meaning, we need to implement a retry policy that Polly can handle! I know Polly when I read "How to maximize … Continue reading Dynamics CRM: Implement Retry Policy using Polly

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

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, by default, when we are using CrmServiceClient, the default timeout is set for 2 minutes. … Continue reading Dynamics CRM: To Set or Not To Set MaxConnectionTimeOut CrmServiceClient?

Dynamics CRM: addOnLookupTagClick and removeOnLookupTagClick

Today we will learn simple methods that are related to the datatype lookup on CRM: addOnLookupTagClick and removeOnLookupTagClick. Basically, addOnLookupTagClick is a function to register an event when the user is clicking the lookup tag value. Click the Lookup Tag value From the image above, if we click the lookup tag value and we register the events using addOnLookupTagClick, those events will be … Continue reading Dynamics CRM: addOnLookupTagClick and removeOnLookupTagClick

Dynamics CRM: Create API for Sending Translated Message To In-Apps Notification

Today, we will learn how to utilize Azure Cognitive Service to help us translate the message to English, create a PowerAutomate Cloud Flow as an API, and push it to Model-Driven-Apps Apps Notification (Preview).  System Design One of the scenarios that I can think of is we can implement this to make the feedback from the customer resolved as fast … Continue reading Dynamics CRM: Create API for Sending Translated Message To In-Apps Notification

Dynamics CRM: Setting ILogger With Different Azure Application Insight Subscription

When first time I saw this documentation (about sending Log to Azure Application Insight), I wanted to implement it in my environment. But when I tried to set it from Data Export (Preview) blade, we must have a subscription in the same environment (if you subscribe to Dynamics CRM using xxx@xxx.onmicrosoft.com, then you also need to create Azure … Continue reading Dynamics CRM: Setting ILogger With Different Azure Application Insight Subscription

Implement Push Changes from Dynamics CRM to Other Source Systems Using WebJobs

When we think about integrating Dynamics CRM with other source systems, we can discover there are lots of ways to do it. Today, we will cover one architecture design that we can implement if we want to push the changes from CRM to other source systems.  Design Architecture From the image above, we will use … Continue reading Implement Push Changes from Dynamics CRM to Other Source Systems Using WebJobs