Dynamics CRM: Use OrganizationServiceContext (LINQ) to Retrieve Data + Tips

I have quite a long journey to hands-on Dynamics CRM (around six years and still counting), and I have a confession to make. I never use OrganizationServiceContext ever! This class will allow you to retrieve Dynamics CRM data using the infamous LINQ (Language-Integrated Query) which more convenient compare using to FetchXml/QueryExpression/QueryAttribute. The first thing that we must … Continue reading Dynamics CRM: Use OrganizationServiceContext (LINQ) to Retrieve Data + Tips

Dataverse: Testing Database Transactions On Custom API

After I examined the potentials of Custom API to redefine how we design the system, I was curious if Custom API will also apply database transactions following the plugin event execution pipeline (Pre Operation - Post Operation will be in the transaction. Meaning if during the process got some errors, it will able to rollback). For example, if we … Continue reading Dataverse: Testing Database Transactions On Custom API

Dynamics CRM Plugin Development: Exploring File and Image DataType

Last week, we learned about File DataType and created Custom API to get the FileName and the Base64String Content. Which I thought is already good enough based on the last knowledge that I knew. But then I saw a post from Daryl Labar about his XrmToolbox EarlyBound Generator improvement around four months ago that said it will generate File attribute … Continue reading Dynamics CRM Plugin Development: Exploring File and Image DataType

Dynamics CRM Plugin Development: Create Custom API to Get File from File DataType

Today we will learn how to create a Custom API to get a file from File DataType in CRM. I only know that CRM got this DataType when I browsed our beloved community forum last week. I can't find the thread already. But in short, the thread starter questioning how we can get the content … Continue reading Dynamics CRM Plugin Development: Create Custom API to Get File from File DataType

Dynamics CRM Plugin Development: Create TracingServiceExtensions for Logging Time Information

Have you got an error request time out in the plugin? If the plugin only contains simple business logic, It will not be hard to catch the problem. But what if you got lots of business logic that updating more than one entity? Today we will create simple extension functions that you can implement to … Continue reading Dynamics CRM Plugin Development: Create TracingServiceExtensions for Logging Time Information

Dataverse DevOps: Create Tool for Auto Deployment for WebResource + PluginAssembly

One of the topics I wanted to learn and cover is how to do DevOps in a Dataverse environment. DevOps for me is an operation/process that helps to ensure smooth delivery from developer to operation (end-user). The idea is to remove all the unnecessary/recursive process and automate it so all the stakeholders can focus on … Continue reading Dataverse DevOps: Create Tool for Auto Deployment for WebResource + PluginAssembly

Dynamics CRM Entity Relationship Behavior Explained

Let's talk about Dynamics CRM Entity Relationship behavior! There are several behaviors in Dynamics CRM that we can apply to fit our requirements. With this blog post, I hope we can learn together about those options.  Create a lookup will automatically create a relationship But first, we need to understand the entity relationship. When we … Continue reading Dynamics CRM Entity Relationship Behavior Explained

Canvas Apps: Create Simple Game – Alphabet Hero

To be honest with you guys, I rarely playing with Canvas Apps. The first time I hands-on to the Canvas Apps was when Malaysia Dynamics 365 User Group App in a day event back in 2019. And then for this week's blog post because I run out of ideas while waiting on my submission for Azure … Continue reading Canvas Apps: Create Simple Game – Alphabet Hero

Dynamics CRM: Effective Way Calling Custom Web API in Javascript Development

Finally, I found how to call Custom Action from Xrm.WebApi.execute function. The funny thing is, the method has already been in place for a long time. I just realized how to call it after I have the curiosity to get the EnvironmentVariable effectively in Javascript (for calling Custom Web API in Plugin Development, you can refer to this blog … Continue reading Dynamics CRM: Effective Way Calling Custom Web API in Javascript Development

Implement Logging Using Azure Cosmos DB In Dynamics CRM Plugin

If your organization got connected with lots of source systems, the most common request from management is to log the requests and check the result from the source system so we can analyze the log/provide the log for checking process. So today, we will learn how to create a simple logging function using Azure Cosmos DB and … Continue reading Implement Logging Using Azure Cosmos DB In Dynamics CRM Plugin